-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloaded file cannot be deleted in Windows #43
Comments
I am running into a similar issue on Windows while trying to update the vis.js package. It also looks like the
|
At least in the case of vis.js on Windows, (c/deftask unzip
[p paths PATH #{str} "Paths in fileset to unzip"]
(let [tmp (c/tmp-dir!)]
(c/with-pre-wrap fileset
(let [archives (filter (comp paths c/tmp-path) (c/ls fileset))]
;;; BEGIN
(doseq [archive archives
:let [zipfile (ZipFile. (c/tmp-file archive))
entries (->> (.entries zipfile)
enumeration-seq
(remove #(.isDirectory %)))]]
(util/info "Extracting %d files\n" (count entries))
(doseq [entry entries
:let [target (io/file tmp (.getName entry))]]
(io/make-parents target)
(with-open [is (.getInputStream zipfile entry) ]
(io/copy is target))))
;;; END
(-> fileset (c/rm archives) (c/add-resource tmp) c/commit!))))) |
I can confirm that this issue does not effect Debian 9 using
|
It looks like after expanding the downloading zip, it is deleted but that doesn't work on Windows:
The text was updated successfully, but these errors were encountered: