Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-81790: support "UNC" device paths inntpath.splitdrive()#91882

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Changes from1 commit
Commits
Show all changes
16 commits
Select commitHold shift + click to select a range
c97bfbf
gh-81790: support "UNC" device paths in ntpath.splitdrive()
barneygaleApr 24, 2022
2da18ba
Add docs, news, tests.
barneygaleApr 24, 2022
49f9373
Add a couple of comments.
barneygaleApr 24, 2022
57840d4
Improve variable names a little
barneygaleApr 24, 2022
264d79e
Address review feedback
barneygaleApr 25, 2022
0652b12
Add a few comments
barneygaleApr 25, 2022
bcc561c
Fix volume-by-guid path support
barneygaleApr 26, 2022
40c1eaf
Update Lib/ntpath.py
barneygaleApr 26, 2022
34358c8
Update Lib/ntpath.py
barneygaleApr 26, 2022
0213a72
Update Lib/ntpath.py
barneygaleApr 26, 2022
a7fa62b
Revise implementation to affect only paths beginning `\\?\UNC\`.
barneygaleMay 28, 2022
992f59d
Undo formatting change.
barneygaleMay 28, 2022
3f163ff
Re-introduce comment with some interesting findings on extended paths.
barneygaleMay 28, 2022
4244684
Fix handling of `\\?\UNC` (no trailing slash)
barneygaleMay 31, 2022
471e3b4
Remove extending paths findings comment.
barneygaleMay 31, 2022
8f9ab9a
Remove unnecessary tests
barneygaleJun 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Remove extending paths findings comment.
  • Loading branch information
@barneygale
barneygale committedMay 31, 2022
commit471e3b4c3f68f888f8f0534a3062e377460013be
15 changes: 0 additions & 15 deletionsLib/ntpath.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -118,21 +118,6 @@ def join(path, *paths):
raise


# Interesting findings about extended paths:
# * '\\?\c:\a' is an extended path, which bypasses normal Windows API
# path processing. Thus relative paths are not resolved and slash is not
# translated to backslash. It has the native NT path limit of 32767
# characters, but a bit less after resolving device symbolic links,
# such as '\??\C:' => '\Device\HarddiskVolume2'.
# * '\\?\c:/a' looks for a device named 'C:/a' because slash is a
# regular name character in the object namespace.
# * '\\?\c:\foo/bar' is invalid because '/' is illegal in NT filesystems.
# The only path separator at the filesystem level is backslash.
# * '//?/c:\a' and '//?/c:/a' are effectively equivalent to '\\.\c:\a' and
# thus limited to MAX_PATH.
# * Prior to Windows 8, ANSI API bytes paths are limited to MAX_PATH,
# even with the '\\?\' prefix.

# Split a path in a drive specification (a drive letter followed by a
# colon) and the path specification.
# It is always true that drivespec + pathspec == p
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp