镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Fix for long UNC paths using opener.parse - #252

Open
robmcmullen wants to merge 1 commit into
PyFilesystem:masterfrom
robmcmullen:master
Open

robmcmullen wants to merge 1 commit into
PyFilesystem:masterfrom
robmcmullen:master

Conversation

@robmcmullen

Copy link
Copy Markdown

I'm not sure if this is the correct fix, but it's at least a workaround for long UNC paths. This code:

uri = r'\\?\UNC\VBOXSVR\work\stuff.xex'
fs, relpath = opener.parse(uri)
print relpath

was producing ?\N:\src\omnivore\UNC\VBOXSVR\work, so it was thinking that the UNC part was a parent directory rather than the UNC path specifier.

paths where UNC was being included in the path as a parent directory
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.

1 participant