Skip to content

Conversation

@albertvillanova
Copy link
Member

By using this prefix, you can exceed the Windows MAX_PATH limit.

See: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN#win32-file-namespaces

Related to #2524, #2220.

@mariosasko
Copy link
Collaborator

Does this mean the FileNotFoundError that avoids infinite loop can be removed?

@albertvillanova
Copy link
Member Author

Yes, I think so...

@albertvillanova
Copy link
Member Author

albertvillanova commented Jul 12, 2021

Or maybe we could leave it in case a relative path exceeds the MAX_PATH limit?

@mariosasko
Copy link
Collaborator

Or maybe we could leave it in case a relative path exceeds the MAX_PATH limit?

What about converting relative paths to absolute?

@lhoestq
Copy link
Member

lhoestq commented Jul 15, 2021

Nice ! Have you had a chance to test it on a windows machine with the max path limit enabled ? Afaik the CI doesn't have the path limit

@albertvillanova
Copy link
Member Author

Sure @lhoestq: I've tested on my machine... And this fixes most of the tests... 😅

@albertvillanova albertvillanova merged commit a23ffd5 into huggingface:master Jul 16, 2021
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