summaryrefslogtreecommitdiffstats
path: root/Lib/macpath.py
Commit message (Collapse)AuthorAgeFilesLines
* Feature request #935915: Add os.path.devnull.Martin v. Löwis2004-06-081-1/+2
|
* Getting rid of macfs.Jack Jansen2003-02-271-4/+4
|
* Migrate definitions of several platform-dependent path-related variablesSkip Montanaro2003-02-141-0/+10
| | | | into the relevant path modules. See patch #686397.
* Whitespace normalization.Tim Peters2003-01-291-4/+4
|
* Added ismount().Jack Jansen2003-01-151-0/+5
| | | | Fixes #661762, bugfix candidate.
* Fix SF #659228, 'realpath' function missing from os.pathNeal Norwitz2003-01-031-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öwis2002-12-311-1/+4
| | | | Document that getatime and getmtime may return floats.
* Patch #536661: Improve performance of splitext. Add test_macpath.Martin v. Löwis2002-12-121-14/+5
|
* Add os.path.supports_unicode_filenames for all platforms,Mark Hammond2002-10-081-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.
* Replaced obsolete stat module constants with equivalent attributesRaymond Hettinger2002-06-011-8/+5
|
* Whitespace normalization.Tim Peters2002-05-231-13/+13
|
* whitespace fixup. test__all__ and test_sundry were failingAnthony Baxter2002-04-231-1/+1
| | | | for me on linux because of the inconsistent whitespace.
* Fixes based on ideas from Christopher Smith:Jack Jansen2002-04-221-5/+21
| | | | | | | | - islink() now returns true for alias files - walk() no longer follows aliases while traversing - realpath() implemented, returning an alias-free pathname. As this could conceivably break existing code I think it isn't a bugfix candidate.
* Partial introduction of bools where appropriate.Guido van Rossum2002-04-071-2/+2
|
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-041-3/+3
|
* Use docstrings for exception classesNeal Norwitz2002-03-311-1/+2
|
* Stop using string exceptionsNeal Norwitz2002-03-311-1/+1
|
* SF bug [#469732] os.path.walk docstring inconsistent.Tim Peters2001-10-101-7/+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 Rossum2001-09-171-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'
* Typo fix (spelling mistake in error message).Greg Ward2001-08-081-1/+1
|
* a few more modules get __all__Skip Montanaro2001-01-241-0/+4
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-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 Drake2000-09-281-7/+7
| | | | | | Never assume that os.sep is for the module-specific platform; use the right separator character directly. Fix some minor style consistency nits.
* Restored commonprefix() semantics.Jack Jansen2000-08-231-23/+13
|
* Rewrite of normpath() by Corran Webster, so trailing :s are removedJack Jansen2000-08-061-32/+23
| | | | (except for : and volume:, where they are needed).
* fixed semantics of commonprefix to work by path elements instead ofSkip Montanaro2000-07-121-0/+23
| | | | characters.
* getatime() returned the mtime instead of the atime.Guido van Rossum2000-07-011-1/+1
| | | | Similar to an old bug in ntpath.py.
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-147/+145
| | | | | | | | | | | | | | | | | | 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.
* getsize(), getatime(), getmtime():Fred Drake1999-07-231-3/+3
| | | | | | | Constants from stat module were imported using "import *"; don't access them via stat.ST_*! Reported by that other vR. ;-)
* Add abspath()Guido van Rossum1999-01-291-0/+7
|
* Added getsize(), getmtime(), getatime()Guido van Rossum1998-07-241-0/+18
|
* Instead of 'import mac', use 'import os' -- this way, the path syntaxGuido van Rossum1998-03-031-9/+9
| | | | | manipulation routines can be used on non-Mac platforms (e.g. to manipulate pathnames in a Mac specific archive).
* Fix for boundary case (Jack)Guido van Rossum1997-05-211-1/+4
|
* join(): Wax the incorrect leading commentBarry Warsaw1997-02-181-4/+0
|
* join(): join one or more path componentsBarry Warsaw1997-02-181-12/+18
|
* Added splitext()Guido van Rossum1996-07-231-0/+22
|
* Added (dummy) expanduser and expandvar methodsJack Jansen1995-12-151-0/+11
|
* added normpath() and splitdrive()Guido van Rossum1995-08-101-39/+45
|
* Added missing walk() functionJack Jansen1995-08-071-0/+19
|
* changes for the MacGuido van Rossum1995-01-271-0/+7
|
* * Lib/linecache.py: don't crash on empty filenameGuido van Rossum1994-08-231-1/+1
| | | | | | | | | | | * Lib/macpath.py: don't return trailing colon for dirname() (XXX won't do for volume names -- but otherwise glob(':*:*.py') loops forever) * Lib/traceback.py: print SyntaxError correctly * Lib/stat.py: moved to posixstat.py; added macstat.py which has the constants for the Mac; and created new stat.py which includes the right one * Lib/urllib.py: fix caching bug (by disabling the cache)
* * change default line numbers for 'list' in pdb.pyGuido van Rossum1992-11-051-0/+12
| | | | | | | | | * 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.
* 'cat' no longer existsGuido van Rossum1992-03-311-3/+1
|
* Added 'normcase' function.Guido van Rossum1992-01-141-1/+6
|
* New == syntaxGuido van Rossum1992-01-011-2/+2
|
* macpath.cat --> joinGuido van Rossum1991-08-161-3/+6
|
* Added explanatory comments.Guido van Rossum1991-01-011-6/+44
|
* Initial revisionGuido van Rossum1990-12-261-0/+70