Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bug #1266283: lexists() is not exported from os.path | Georg Brandl | 2005-08-22 | 1 | -4/+4 |
| | |||||
* | patch [ 1105730 ] Faster commonprefix in macpath, ntpath, etc. | Georg Brandl | 2005-08-03 | 1 | -8/+7 |
| | |||||
* | Patch #941486: add os.path.lexists(). Also fix bug #940578 by using lexists ↵ | Johannes Gijsbers | 2004-08-30 | 1 | -1/+2 |
| | | | | in glob.glob. | ||||
* | Make ntpath compress multiple slashes between drive letter and the rest of the | Brett Cannon | 2004-07-10 | 1 | -3/+19 |
| | | | | | | path. Also clarifies UNC handling and adds appropriate tests. Applies patch #988607 to fix bug #980327. Thanks Paul Moore. | ||||
* | Feature request #935915: Add os.path.devnull. | Martin v. Löwis | 2004-06-08 | 1 | -1/+2 |
| | |||||
* | Fix a bunch of typos in documentation, docstrings and comments. | Walter Dörwald | 2003-10-20 | 1 | -1/+1 |
| | | | | (From SF patch #810751) | ||||
* | make nt altsep forward slash - closes bug 709428 | Skip Montanaro | 2003-03-28 | 1 | -1/+1 |
| | | | | backport candidate | ||||
* | Tweak to Skip's checkin of patch 686397: | Andrew MacIntyre | 2003-02-17 | 1 | -3/+2 |
| | | | | | | - 'os2' references in ntpath.py relate to the VACPP port, not the EMX port; - the VACPP port uses the same defpath as all other ntpath.py supported platforms except 'ce'. | ||||
* | Migrate definitions of several platform-dependent path-related variables | Skip Montanaro | 2003-02-14 | 1 | -0/+16 |
| | | | | into the relevant path modules. See patch #686397. | ||||
* | Fix SF #659228, 'realpath' function missing from os.path | Neal Norwitz | 2003-01-03 | 1 | -1/+1 |
| | | | | | | | Also added realpath = abspath for os2emx, similar to windows/mac which also don't really implement realpath. Backport candidate, I think? | ||||
* | Patch #658927: Add getctime to os.path. | Martin v. Löwis | 2002-12-31 | 1 | -1/+4 |
| | | | | Document that getatime and getmtime may return floats. | ||||
* | Patch #536661: Improve performance of splitext. Add test_macpath. | Martin v. Löwis | 2002-12-12 | 1 | -14/+6 |
| | |||||
* | Don't try to access sys.getwindowsversion unless it exists (ntpath is | Tim Peters | 2002-10-09 | 1 | -1/+2 |
| | | | | | | imported on systems other than Windows, and in particular is imported by test___all__; the compile farm reported that all Linux tests failed due to this; isn't anyone in PythonDevLand running CVS on Linux?!). | ||||
* | Add os.path.supports_unicode_filenames for all platforms, | Mark Hammond | 2002-10-08 | 1 | -1/+5 |
| | | | | | | sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink> version), and fix test_pep277.py in a few minor ways. Including doc and NEWS entries. | ||||
* | Replaced obsolete stat module constants with equivalent attributes | Raymond Hettinger | 2002-06-01 | 1 | -8/+5 |
| | |||||
* | SF 563203. Replaced 'has_key()' with 'in'. | Raymond Hettinger | 2002-06-01 | 1 | -4/+4 |
| | |||||
* | Partial introduction of bools where appropriate. | Guido van Rossum | 2002-04-07 | 1 | -3/+3 |
| | |||||
* | Convert a pile of obvious "yes/no" functions to return bool. | Tim Peters | 2002-04-04 | 1 | -2/+2 |
| | |||||
* | Allow abspath to still do something sensisble if the nt module can not be ↵ | Mark Hammond | 2002-01-17 | 1 | -1/+11 |
| | | | | imported. | ||||
* | SF bug 478425: Change in os.path.join (ntpath.py) | Tim Peters | 2001-11-05 | 1 | -0/+6 |
| | | | | | | ntpath.join('a', '') was producing 'a' instead of 'a\\' as in 2.1. Impossible to guess what was ever *intended*, but since split('a\\') produces ('a', ''), I think it's best if join('a', '') gives 'a\\' back. | ||||
* | SF bug [#469732] os.path.walk docstring inconsistent. | Tim Peters | 2001-10-10 | 1 | -4/+13 |
| | | | | | We have 5 implementations of walk(), and 5 different docstrings. Combined 'em. Let's see how long it takes before they're all different again! | ||||
* | SF patch #461781 by Chris Lawrence: os.path.realpath - Resolve symlinks: | Guido van Rossum | 2001-09-17 | 1 | -0/+3 |
| | | | | | | | | | | | | | | Once upon a time, I put together a little function that tries to find the canonical filename for a given pathname on POSIX. I've finally gotten around to turning it into a proper patch with documentation. On non-POSIX, I made it an alias for 'abspath', as that's the behavior on POSIX when no symlinks are encountered in the path. Example: >>> os.path.realpath('/usr/bin/X11/X') '/usr/X11R6/bin/X' | ||||
* | SF bug #456621: normpath on Win32 not collapsing c:\\.. | Tim Peters | 2001-08-30 | 1 | -8/+11 |
| | | | | | | I actually rewrote normpath quite a bit: it had no test cases, and as soon as I starting writing some I found several cases that didn't make sense. | ||||
* | One more crack at join(): stop trying to pretend this isn't a mass of | Tim Peters | 2001-07-27 | 1 | -16/+40 |
| | | | | special cases. test_pkg works again on Windows. | ||||
* | Change ntpath.join() so that join("d:/", "/whatever") returns | Tim Peters | 2001-07-26 | 1 | -5/+6 |
| | | | | | | | d:/whatever instead of /whatever. While I'm afraid changing isabs() to be *consistent* with this would break lots of code, it makes best sense for join() to do it this way. Thanks to Alex Martelli for pushing back on this one! | ||||
* | Use string.ascii_letters instead of string.letters (SF bug #226706). | Fred Drake | 2001-07-20 | 1 | -1/+1 |
| | |||||
* | SF bug #44271: os.path.expanduser problem w/o HOME set. | Tim Peters | 2001-07-19 | 1 | -6/+16 |
| | | | | | | | This is a Windows-specific glitch that's really due to that, e.g., ntpath.join("c:", "/abc") returned "/abc" instead of "c:/abc". Made join smarter. Bugfix candidate. | ||||
* | abspath(): Fix inconsistent indentation. | Fred Drake | 2001-05-15 | 1 | -1/+1 |
| | |||||
* | Add support for Windows using "mbcs" as the default Unicode encoding when ↵ | Mark Hammond | 2001-05-13 | 1 | -13/+4 |
| | | | | dealing with the file system. As discussed on python-dev and in patch 410465. | ||||
* | added several more __all__ lists | Skip Montanaro | 2001-02-06 | 1 | -0/+4 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2001-01-15 | 1 | -3/+3 |
| | |||||
* | Update the code to better reflect recommended style: | Fred Drake | 2000-12-12 | 1 | -3/+3 |
| | | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects. | ||||
* | Avoid import of string module; it is only needed for expandvars(). | Fred Drake | 2000-09-28 | 1 | -22/+21 |
| | | | | | | Never assume that os.sep is for the module-specific platform; use the right separator character directly. Fix some minor style consistency nits. | ||||
* | Part of SF patch 101481: on Windows, os.path.join("a:", "b") should yield | Tim Peters | 2000-09-19 | 1 | -1/+1 |
| | | | | "a:b", not "a:/b". Similar change was made to posixmodule.c earlier. | ||||
* | revert semantics of commonprefix to work character-by-character | Skip Montanaro | 2000-08-22 | 1 | -8/+3 |
| | |||||
* | Fix for Bug #110673: os.abspatth() now always returns os.getcwd() on ↵ | Mark Hammond | 2000-08-14 | 1 | -4/+7 |
| | | | | Windows, if an empty path is specified. It previously did not if an empty path was delegated to win32api.GetFullPathName()) | ||||
* | * split on / or \ | Skip Montanaro | 2000-07-17 | 1 | -3/+5 |
| | | | | * case insensitive comparison | ||||
* | forgot to change copy.copy(m) to m[:] | Skip Montanaro | 2000-07-13 | 1 | -2/+2 |
| | |||||
* | fixed semantics of commonprefix to work by path elements instead of | Skip Montanaro | 2000-07-12 | 1 | -4/+7 |
| | | | | characters. | ||||
* | Fix bug #345 reported by David Bolen <db3l@fitlinxx.com>: | Fred Drake | 2000-07-01 | 1 | -1/+1 |
| | | | | | getatime() returned the mtime instead of the atime. Similar to an old bug in posixpath.py. | ||||
* | Typo in a comment: "wheter" --> "whether" | Fred Drake | 2000-02-17 | 1 | -1/+1 |
| | |||||
* | Optimize abspath() slightly for the case that win32api can't be | Guido van Rossum | 2000-02-02 | 1 | -6/+11 |
| | | | | imported; in that case, abspath is replaced by a fallback version. | ||||
* | In abspath(), always use normpath(), even when win32api is available | Guido van Rossum | 1999-11-30 | 1 | -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 Rossum | 1999-11-02 | 1 | -1/+1 |
| | |||||
* | Withdraw the UNC support from splitdrive(). Instead, a new function | Guido van Rossum | 1999-04-06 | 1 | -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 Rossum | 1999-03-19 | 1 | -19/+12 |
| | |||||
* | New splitdrive() that knows about UNC paths (e.g., network paths like | Guido van Rossum | 1999-02-03 | 1 | -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 Rossum | 1999-01-29 | 1 | -3/+7 |
| | |||||
* | Add abspath() | Guido van Rossum | 1999-01-29 | 1 | -0/+7 |
| | |||||
* | Added getsize(), getmtime(), getatime() | Guido van Rossum | 1998-07-24 | 1 | -0/+18 |
| |