Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Migrate definitions of several platform-dependent path-related variables | Skip Montanaro | 2003-02-14 | 1 | -0/+10 |
| | | | | into the relevant path modules. See patch #686397. | ||||
* | Fix SF #659228, 'realpath' function missing from os.path | Neal Norwitz | 2003-01-03 | 1 | -1/+2 |
| | | | | | | | 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/+5 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2002-11-09 | 1 | -1/+0 |
| | |||||
* | Add os.path.supports_unicode_filenames for all platforms, | Mark Hammond | 2002-10-08 | 1 | -1/+4 |
| | | | | | | 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. | ||||
* | SF # 555779, import user doesn't work with CGIs | Neal Norwitz | 2002-09-05 | 1 | -2/+4 |
| | |||||
* | Remove another reference to stat.ST_MODE | Neal Norwitz | 2002-06-06 | 1 | -1/+1 |
| | |||||
* | Replaced obsolete stat module constants with equivalent attributes | Raymond Hettinger | 2002-06-01 | 1 | -15/+12 |
| | |||||
* | SF 563203. Replaced 'has_key()' with 'in'. | Raymond Hettinger | 2002-06-01 | 1 | -2/+2 |
| | |||||
* | Partial introduction of bools where appropriate. | Guido van Rossum | 2002-04-07 | 1 | -4/+4 |
| | |||||
* | Convert a pile of obvious "yes/no" functions to return bool. | Tim Peters | 2002-04-04 | 1 | -7/+7 |
| | |||||
* | SF bug [#469732] os.path.walk docstring inconsistent. | Tim Peters | 2001-10-10 | 1 | -4/+14 |
| | | | | | 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! | ||||
* | Whitespace normalization. | Tim Peters | 2001-09-18 | 1 | -1/+1 |
| | |||||
* | SF patch #461781 by Chris Lawrence: os.path.realpath - Resolve symlinks: | Guido van Rossum | 2001-09-17 | 1 | -0/+21 |
| | | | | | | | | | | | | | | 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' | ||||
* | In walk(), don't die when os.lstat() raises os.error, e.g. because a | Guido van Rossum | 2001-04-16 | 1 | -1/+4 |
| | | | | | | | | | file was deleted by a previous call to the visitor function. This used to be the behavior in 1.5.2 and before, but a patch to avoid making two stat() calls accidentally broke this in 2.0. Moshe, this would be a good one for 2.0.1 too! | ||||
* | __all__ for several more modules | Skip Montanaro | 2001-02-12 | 1 | -0/+5 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2001-02-09 | 1 | -1/+1 |
| | |||||
* | Fixed posixpath.normpath() to respect two leading slashes, but | Marc-André Lemburg | 2001-01-29 | 1 | -4/+9 |
| | | | | | turn three or more into a single slash. (This is in sync with POSIX susv2 according to Fredrik.) | ||||
* | Whitespace normalization. | Tim Peters | 2001-01-15 | 1 | -10/+10 |
| | |||||
* | Update the code to better reflect recommended style: | Fred Drake | 2000-12-12 | 1 | -4/+4 |
| | | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects. | ||||
* | Minor style nits. | Fred Drake | 2000-09-28 | 1 | -10/+10 |
| | |||||
* | Remove imports of string when string methods will do. | Fred Drake | 2000-09-28 | 1 | -5/+3 |
| | |||||
* | revert semantics of commonprefix to work character-by-character | Skip Montanaro | 2000-08-22 | 1 | -7/+3 |
| | |||||
* | added rewritten normpath from Moshe Zadka that does the right thing with | Skip Montanaro | 2000-07-19 | 1 | -23/+18 |
| | | | | paths containing .. | ||||
* | split and join on "/" in commonprefix | Skip Montanaro | 2000-07-16 | 1 | -6/+3 |
| | |||||
* | fixed semantics of commonprefix to work by path elements instead of | Skip Montanaro | 2000-07-12 | 1 | -3/+10 |
| | | | | characters. | ||||
* | typos fixed by Rob Hooft | Jeremy Hylton | 2000-06-28 | 1 | -2/+2 |
| | |||||
* | Remove some redundant logic from walk() -- there's no need to check | Guido van Rossum | 2000-02-29 | 1 | -2/+0 |
| | | | | for "." and "..", since listdir() no longer returns those. | ||||
* | Patch by Gerrit Holl to avoid doing two stat() calls in a row in walk(). | Guido van Rossum | 2000-02-28 | 1 | -1/+2 |
| | |||||
* | Mark Favas discovered this: getatime() accidentally returned the MTIME! | Guido van Rossum | 2000-02-24 | 1 | -1/+1 |
| | | | | This fixes PR#211. | ||||
* | More trivial comment -> docstring transformations by Ka-Ping Yee, | Guido van Rossum | 2000-02-04 | 1 | -11/+11 |
| | | | | | | | | | | | | | | | | | | who writes: Here is batch 2, as a big collection of CVS context diffs. Along with moving comments into docstrings, i've added a couple of missing docstrings and attempted to make sure more module docstrings begin with a one-line summary. I did not add docstrings to the methods in profile.py for fear of upsetting any careful optimizations there, though i did move class documentation into class docstrings. The convention i'm using is to leave credits/version/copyright type of stuff in # comments, and move the rest of the descriptive stuff about module usage into module docstrings. Hope this is okay. | ||||
* | Correct typo in walk.__doc__ reported by Francois Pinard. | Guido van Rossum | 1999-11-02 | 1 | -1/+1 |
| | |||||
* | Add abspath() | Guido van Rossum | 1999-01-29 | 1 | -0/+7 |
| | |||||
* | Patch suggested by Perry Stoll -- os.path.normpath(".//x") returned | Guido van Rossum | 1998-09-08 | 1 | -0/+2 |
| | | | | "/x", should return "x". | ||||
* | Added getsize(), getmtime(), getatime() | Guido van Rossum | 1998-07-24 | 1 | -0/+18 |
| | |||||
* | Added doc strings and reindented according to new standard, without tabs. | Guido van Rossum | 1997-12-05 | 1 | -162/+194 |
| | | | | (Like ntpath.py, this was contributed by "Charles G. Waldman" <cgw@pgt.com>) | ||||
* | Convert all remaining *simple* cases of regex usage to re usage. | Guido van Rossum | 1997-10-22 | 1 | -6/+6 |
| | |||||
* | join(): join one or more path components | Barry Warsaw | 1997-02-18 | 1 | -7/+12 |
| | |||||
* | Correct description of splitext(). | Guido van Rossum | 1996-08-20 | 1 | -1/+1 |
| | |||||
* | Renamed all occurrences of posix to os. | Guido van Rossum | 1996-07-23 | 1 | -28/+33 |
| | |||||
* | Subtlety: ~root/a should expand to /a, not //a. Everything else unchanged. | Guido van Rossum | 1996-04-02 | 1 | -0/+1 |
| | |||||
* | rationalized os.path.split() so split "/a/" yields "/a", "" | Guido van Rossum | 1995-09-01 | 1 | -13/+7 |
| | |||||
* | add splitdrive() | Guido van Rossum | 1995-08-07 | 1 | -0/+7 |
| | |||||
* | Let extensions start at the last period after the last slash in the | Sjoerd Mullender | 1994-12-14 | 1 | -1/+6 |
| | | | | name. | ||||
* | Merge alpha100 branch back to main trunk | Guido van Rossum | 1994-08-01 | 1 | -21/+27 |
| | |||||
* | * posixpath.py: Fix border cases in normpath ('/foo/..' should return '/') | Guido van Rossum | 1993-07-06 | 1 | -5/+7 |
| | | | | | * ftplib.py: made cwd() use 'CDUP' when dirname is '..' * FL.py: added new constant FL_PLACE_FULLSCREEN | ||||
* | * change default line numbers for 'list' in pdb.py | Guido van Rossum | 1992-11-05 | 1 | -0/+34 |
| | | | | | | | | | * changed eval() into getattr() in cmd.py * added dirname(), basename() and (dummy) normath() to macpath.py * renamed nntp.py to nntplib.py * Made string.index() compatible with strop.index() * Make string.atoi('') raise string.atoi_error rather than ValueError * Added dirname() and normpath() to posixpath. | ||||
* | Added emacs.py (for misc/py-connect.el). | Guido van Rossum | 1992-08-09 | 1 | -0/+26 |
| | | | | posixpath.py: added undocumented expanndvars() (expands $VAR in string). | ||||
* | fix a typo in samestat() (ST_DEV, not STD_DEV); | Guido van Rossum | 1992-05-06 | 1 | -27/+16 |
| | | | | rewrite ismount() to compare stats of path and path/.. |