summaryrefslogtreecommitdiffstats
path: root/Lib/ntpath.py
Commit message (Collapse)AuthorAgeFilesLines
* Optimize abspath() slightly for the case that win32api can't beGuido van Rossum2000-02-021-6/+11
| | | | imported; in that case, abspath is replaced by a fallback version.
* In abspath(), always use normpath(), even when win32api is availableGuido van Rossum1999-11-301-3/+3
| | | | | (and even when it fails). This avoids the problem where a trailing separator is not removed when win32api.GetFullPathName() is used.
* Correct typo in walk.__doc__ reported by Francois Pinard.Guido van Rossum1999-11-021-1/+1
|
* Withdraw the UNC support from splitdrive(). Instead, a new functionGuido van Rossum1999-04-061-8/+26
| | | | | | | | | | | | | | | splitunc() parses UNC paths. The contributor of the UNC parsing in splitdrive() doesn't like it, but I haven't heard a good reason to keep it, and it causes some problems. (I think there's a philosophical problem -- to me, the split*() functions are purely syntactical, and the fact that \\foo is not a valid path doesn't mean that it shouldn't be considered an absolute path.) Also (quite separately, but strangely related to the philosophical issue above) fix abspath() so that if win32api exists, it doesn't fail when the path doesn't actually exist -- if GetFullPathName() fails, fall back on the old strategy (join with getcwd() if neccessary, and then use normpath()).
* New code for split() by Tim Peters, behaves more like posixpath.split().Guido van Rossum1999-03-191-19/+12
|
* New splitdrive() that knows about UNC paths (e.g., network paths likeGuido van Rossum1999-02-031-26/+50
| | | | | | \\host\mountpoint\dir\file). By Larry Hastings. Also cleaned up some docstrings.
* Use win32api.GetFullPathName(path) if it exists to implement abspath().Guido van Rossum1999-01-291-3/+7
|
* Add abspath()Guido van Rossum1999-01-291-0/+7
|
* Added getsize(), getmtime(), getatime()Guido van Rossum1998-07-241-0/+18
|
* REMOVE samefile(), sameopenfile(), samestat() -- these cannot be madeGuido van Rossum1998-05-021-30/+0
| | | | to work reliably (at least I wouldn't know how).
* (1) Change normpath() to *not* also call normcase().Guido van Rossum1998-02-181-7/+7
| | | | | | | (2) Fix normcase() to use string.lower() and string.replace() -- it turns out that the table constructed for translate() didn't work in locales that have a different number of lowercase and uppercase letters.
* Fix to ismount(). Can't remember who told me this.Guido van Rossum1998-01-191-2/+3
|
* Added doc strings and reindented according to new standard, without tabs.Guido van Rossum1997-12-051-189/+223
|
* Rewrite normcase() using string.translate...Guido van Rossum1997-08-121-14/+6
|
* Support $HOME in expanduser().Guido van Rossum1997-06-021-6/+12
| | | | (Who'd thought that *anyone* would be interested in writing ~/foo on NT :-)
* join(): Wax the incorrect leading commentBarry Warsaw1997-02-181-4/+0
|
* join(): join one or more path componentsBarry Warsaw1997-02-181-7/+12
|
* Fix splitext() to go up to the last dot, not the first.Guido van Rossum1997-01-221-3/+8
|
* Don't do truncation to 8+3 format -- this is used on NT file systems!Guido van Rossum1996-08-261-9/+2
|
* Don't use 'false'; use '0'.Guido van Rossum1996-08-081-1/+1
|
* same thing as for dospath, plus HOMEDRIVE/HOMEPATH supportGuido van Rossum1995-08-101-12/+11
|
* Added ntpath.py (for os.py when used with Windows NT)Guido van Rossum1994-02-241-0/+348