summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
Commit message (Collapse)AuthorAgeFilesLines
* In walk(), don't die when os.lstat() raises os.error, e.g. because aGuido van Rossum2001-04-161-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 modulesSkip Montanaro2001-02-121-0/+5
|
* Whitespace normalization.Tim Peters2001-02-091-1/+1
|
* Fixed posixpath.normpath() to respect two leading slashes, butMarc-André Lemburg2001-01-291-4/+9
| | | | | turn three or more into a single slash. (This is in sync with POSIX susv2 according to Fredrik.)
* Whitespace normalization.Tim Peters2001-01-151-10/+10
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-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 Drake2000-09-281-10/+10
|
* Remove imports of string when string methods will do.Fred Drake2000-09-281-5/+3
|
* revert semantics of commonprefix to work character-by-characterSkip Montanaro2000-08-221-7/+3
|
* added rewritten normpath from Moshe Zadka that does the right thing withSkip Montanaro2000-07-191-23/+18
| | | | paths containing ..
* split and join on "/" in commonprefixSkip Montanaro2000-07-161-6/+3
|
* fixed semantics of commonprefix to work by path elements instead ofSkip Montanaro2000-07-121-3/+10
| | | | characters.
* typos fixed by Rob HooftJeremy Hylton2000-06-281-2/+2
|
* Remove some redundant logic from walk() -- there's no need to checkGuido van Rossum2000-02-291-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 Rossum2000-02-281-1/+2
|
* Mark Favas discovered this: getatime() accidentally returned the MTIME!Guido van Rossum2000-02-241-1/+1
| | | | This fixes PR#211.
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-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 Rossum1999-11-021-1/+1
|
* Add abspath()Guido van Rossum1999-01-291-0/+7
|
* Patch suggested by Perry Stoll -- os.path.normpath(".//x") returnedGuido van Rossum1998-09-081-0/+2
| | | | "/x", should return "x".
* Added getsize(), getmtime(), getatime()Guido van Rossum1998-07-241-0/+18
|
* Added doc strings and reindented according to new standard, without tabs.Guido van Rossum1997-12-051-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 Rossum1997-10-221-6/+6
|
* join(): join one or more path componentsBarry Warsaw1997-02-181-7/+12
|
* Correct description of splitext().Guido van Rossum1996-08-201-1/+1
|
* Renamed all occurrences of posix to os.Guido van Rossum1996-07-231-28/+33
|
* Subtlety: ~root/a should expand to /a, not //a. Everything else unchanged.Guido van Rossum1996-04-021-0/+1
|
* rationalized os.path.split() so split "/a/" yields "/a", ""Guido van Rossum1995-09-011-13/+7
|
* add splitdrive()Guido van Rossum1995-08-071-0/+7
|
* Let extensions start at the last period after the last slash in theSjoerd Mullender1994-12-141-1/+6
| | | | name.
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-21/+27
|
* * posixpath.py: Fix border cases in normpath ('/foo/..' should return '/')Guido van Rossum1993-07-061-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.pyGuido van Rossum1992-11-051-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 Rossum1992-08-091-0/+26
| | | | posixpath.py: added undocumented expanndvars() (expands $VAR in string).
* fix a typo in samestat() (ST_DEV, not STD_DEV);Guido van Rossum1992-05-061-27/+16
| | | | rewrite ismount() to compare stats of path and path/..
* Renamed to posixpath; changed def'n of split().Guido van Rossum1992-03-311-9/+13
|
* Make nicer comments.Guido van Rossum1992-01-141-34/+98
| | | | Added expanduser() and normcase() and isabs() and isfile().
* New == syntaxGuido van Rossum1992-01-011-9/+9
|
* Use AttributeError.Guido van Rossum1991-12-261-1/+1
|
* Added samefile() function.Guido van Rossum1991-11-121-0/+28
|
* path.cat --> joinGuido van Rossum1991-08-161-5/+27
| | | | Added splitext
* Use 'stat' module instead of hardcoding information from <sys/stat.h>.Guido van Rossum1990-10-211-2/+3
|
* Initial revisionGuido van Rossum1990-10-131-0/+124