-
Notifications
You must be signed in to change notification settings - Fork 36
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
sync_tree sometimes fails to copy the read-only attribute on Windows #680
Comments
Here's the output of
|
I don't think it's a bug as such and I'm not sure it's something we want to fix. In fact you created your
The proof is if you test like this: rm -rf in out
mkdir -p in out
touch {in,out}/foo.txt
ls -la in out
touch in/foo.txt
python testsuite.py
ls -la in out (I add an intermediate By doing this, the file I'm going to check with the team to see if this is the way we want to do things. I'll be back as soon as I have some information to give you. |
Hi @leocardao,
How does it know when the content changes that I haven't made a mistake? 🙃
I'm not sure whether this just is a problem with my reproducer 🤔 For context, the real issue where this came up is the AdaCore build of the GNAT-LLVM runtime: The runtime's Makefile executes |
In some cases,
e3.fs.sync_tree
fails to synchronize the Windows read-only attribute on files. You can reproduce the problem using the following script:(It doesn't seem to matter whether
delete
isTrue
orFalse
.)This is how I used the script:
Note how
out/foo.txt
is still writable after the call tosync_tree
. Windows Explorer confirms that the read-only attribute isn't set.The text was updated successfully, but these errors were encountered: