Skip to content
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

Avoid hidden folder/files as it introduces problems on certain fileystems #1088

Conversation

bfloch
Copy link
Contributor

@bfloch bfloch commented Jun 1, 2021

I am not sure what the right solution is. Config variable? Windows vs. Linux case? Either way here is
a fix to a very tricky issue that might affect others considering that . prefix is not a happy story in Windows
anyway:

Prefixing file/folders . on certain Linux file servers, that are mounted
via samba to Windows makes the folders hidden. But in edgecases the rename
retains the hidden attribute after the rename without the . prefix.
We observed this on rez-cp.

Some client applications (Autodesk Maya) refuses to work with hidden files.
As such avoid using hidden files for temporary artifacts for sanity sake.

…stems

Prefixing file/folders . on certain Linux file servers, that are mounted
via samba to Windows makes the folders hidden. But in edgecases the rename
retains the hidden attribute after the rename without the . prefix.
We observed this on rez-cp.

Some client applications (Autodesk Maya) refuses to work with hidden files.
As such avoid using hidden files for temporary artifacts for sanity sake.
@davidlatwe
Copy link
Contributor

Using Windows + Linux file server here too, but haven't use rez-cp yet.
What kind of payload that will make Maya mad when it's hidden ?

@nerdvegas
Copy link
Contributor

Ok I um'd and ah'd about this for a bit because it seems potentially dangerous, but the only use case I can see currently is indeed package_copy, and I think that any temporary non-hidden files/dirs within a copied variant's payload dir shouldn't cause problems.

I'll merge this but will add a comment clarifying why the tempdir isn't hidden (which will seem counter-intuitive without an explanation).

@nerdvegas nerdvegas merged commit 611f83e into AcademySoftwareFoundation:master Jun 8, 2021
@bfloch
Copy link
Contributor Author

bfloch commented Jun 8, 2021

@davidlatwe in our case it was scripts or plugins I believe. Totally weird, I have to check the details with the TD involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants