X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Flibrary%2FlibraryClean.ml;h=a544991e85b109e3df0f74f68b27efaf04c612e5;hb=f7ef9307f419376e5db085d59ad79487010ec123;hp=2ac65c5c8b9d2f3435a17fdf10a99a82415d6353;hpb=4e238c92f66aedf21c2d3a33aa5215cdf0a7189f;p=helm.git diff --git a/helm/software/components/library/libraryClean.ml b/helm/software/components/library/libraryClean.ml index 2ac65c5c8..a544991e8 100644 --- a/helm/software/components/library/libraryClean.ml +++ b/helm/software/components/library/libraryClean.ml @@ -212,18 +212,20 @@ let clean_baseuris ?(verbose=true) buris = List.iter (fun baseuri -> try - HExtlib.safe_remove - (LibraryMisc.obj_file_of_baseuri - ~must_exist:false ~writable:true ~baseuri); + let obj_file = + LibraryMisc.obj_file_of_baseuri ~must_exist:false ~writable:true ~baseuri + in + HExtlib.safe_remove obj_file ; HExtlib.safe_remove (LibraryMisc.metadata_file_of_baseuri - ~must_exist:false ~writable:true ~baseuri); + ~must_exist:false ~writable:true ~baseuri) ; HExtlib.safe_remove (LibraryMisc.lexicon_file_of_baseuri - ~must_exist:false ~writable:true ~baseuri) + ~must_exist:false ~writable:true ~baseuri) ; + HExtlib.rmdir_descend (Filename.chop_extension obj_file) with Http_getter_types.Key_not_found _ -> ()) (HExtlib.list_uniq (List.fast_sort Pervasives.compare - (List.map (UriManager.buri_of_uri) l))); + (List.map (UriManager.buri_of_uri) l @ buris))); List.iter (let last_baseuri = ref "" in fun uri ->