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
a non-regular file inside a filesystem directory magic-folder is pointed at prevents contents from being uploaded #515
Comments
Do you have an example of it failing on a directory? |
No, I only reached that conclusion by source code inspection. |
I tried the following with an existing magic-folder:
I then see that some Snapshots with names like |
We'll run into issues if there is something like a symlink (or a unix socket, etc). There are two issues:
I have fix for both issues (which as I've written it) depends on #520 and #521. |
Okay, but where does the unbound-local error come from then? |
In https://github.com/LeastAuthority/magic-folder/blob/db128062a435bf622ed6b2d99487c6bec4f64ad7/src/magic_folder/util/file.py#L59-L71 |
If magic-folder is added pointed at a directory which itself contains something that is not a "regular" file - eg a directory or a symlink - then the contents of the directory are not uploaded. The following appears repeatedly in the log:
The expected behavior is:
The text was updated successfully, but these errors were encountered: