Barry Warsaw
7c549c4e64
- Issue #21539 : Add a *exists_ok* argument to `Pathlib.mkdir()` to mimic
...
`mkdir -p` and `os.makedirs()` functionality. When true, ignore
FileExistsErrors. Patch by Berker Peksag.
(With minor cleanups, additional tests, doc tweaks, etc. by Barry)
Also:
* Remove some unused imports in test_pathlib.py reported by pyflakes.
2014-08-05 11:28:12 -04:00
Antoine Pitrou
006c725426
Merge pathlib fixes
2014-07-06 21:38:35 -04:00
Antoine Pitrou
e50dafcd63
Issue #20639 : calling Path.with_suffix('') allows removing the suffix again.
...
Patch by July Tikhonov.
2014-07-06 21:37:15 -04:00
Antoine Pitrou
7084e736db
Issue #21714 : Disallow the construction of invalid paths using Path.with_name(). Original patch by Antony Lee.
2014-07-06 21:31:12 -04:00
Antoine Pitrou
43e3d9409d
Issue #19775 : Add a samefile() method to pathlib Path objects.
...
Initial patch by Vajrasky Kok.
2014-05-13 10:50:15 +02:00
Antoine Pitrou
cb5ec77d33
Issue #21127 : Path objects can now be instantiated from str subclass instances (such as numpy.str_).
...
Thanks to Antony Lee for the report and preliminary patch.
2014-04-23 00:34:15 +02:00
Antoine Pitrou
1b02da95d2
Issue #20111 : pathlib.Path.with_suffix() now sanity checks the given suffix.
2014-01-03 00:07:17 +01:00
Antoine Pitrou
156b3610b8
Issue #19918 : Fix PurePath.relative_to() under Windows.
2013-12-28 19:49:04 +01:00
Antoine Pitrou
0048c98fef
Issue #19921 : When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).
...
Patch by Serhiy.
2013-12-16 20:22:37 +01:00
Antoine Pitrou
c274fd22ed
Issue #19887 : Improve the Path.resolve() algorithm to support certain symlink chains.
...
Original patch by Serhiy.
2013-12-16 19:57:41 +01:00
Serhiy Storchaka
a993902a28
Issue #19908 : pathlib now joins relative Windows paths correctly when a drive
...
is present. Original patch by Antoine Pitrou.
2013-12-06 17:14:12 +02:00
Antoine Pitrou
069a5e1057
Issue #19872 : remove unused imports in pathlib. Patch by Vajrasky Kok.
2013-12-03 09:41:35 +01:00
Antoine Pitrou
4a60d42aad
Issue #19852 : move Path._raw_open() around, as it is now a private method.
...
Patch by Vajrasky Kok.
2013-12-02 21:25:18 +01:00
Antoine Pitrou
2cf3917954
Issue #19715 : try the utime(..., None) approach again, now that it should be more precise under Windows
2013-11-23 15:25:59 +01:00
Antoine Pitrou
12820c0d5d
Revert utime(..., None) strategy (it has too poor resolution under Windows) and restore the previous test workaround
...
(issue #19715 )
2013-11-23 02:11:02 +01:00
Antoine Pitrou
c3055be5f3
Trying other strategy for #19715 : use utime(..., None)
2013-11-23 01:54:27 +01:00
Antoine Pitrou
0325a21da3
Fix whitespace
2013-11-22 17:38:41 +01:00
Antoine Pitrou
31119e4f10
Issue #19673 : Add pathlib to the stdlib as a provisional module (PEP 428).
2013-11-22 17:38:12 +01:00