Closed ekroon closed 7 years ago
Has anyone tried this on Windows?
Good point, I implemented it this way, because tmp files already are created with PosixFilePermissions
. Maybe I missed a Windows check somewhere as there is a good chance this doesn't work on Windows indeed. I did not check, so I will check it and adapt if necessary.
@ekroon cool, thank you. I haven't checked myself, so it may very well work. I just wanted to make sure someone has tried it.
In https://github.com/asciidoctor/atom-language-asciidoc they use www.appveyor.com for Windows testing. Would that be an option for boot?
Can you please add arities to link!
and copy!
that don't take mode
, but call the arity that does with a value of nil
for mode
?
Then the arity change is backward compatible. Thanks :metal:
It looks like the earlier PosixFilePermissions
related code did break Boot on windows, so presumably this would too: https://github.com/boot-clj/boot/issues/541
@ekroon I don't have experience with appveyor but am certainly open to it.
@alandipert took the liberty to also fix #541 on this branch as it is closely related.
For situations where the default 'rw-------' file modes are not enough, a (posix) mode string can be given to target. All files will get the mode written.
When an invalid mode is given, a warning is printed and standard permissions will be used.