summaryrefslogtreecommitdiff
path: root/django/core/files/move.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #29027 -- Fixed file_move_safe() crash when moving files with SELinux.Yuri Konotopov2022-10-241-6/+8
| | | | Thanks Florian Apolloner for the review.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-11/+24
|
* Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne2019-01-281-2/+2
| | | | Used more specific errors (e.g. FileExistsError) as appropriate.
* Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham2017-09-071-4/+5
| | | | This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
* Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen2017-06-281-6/+4
|
* Fixed #28170 -- Fixed file_move_safe() crash when moving files to a CIFS mount.Derrick Jackson2017-05-311-1/+10
|
* Refs #27656 -- Updated django.core docstring verbs according to PEP 257.Anton Samarchyan2017-02-211-6/+5
|
* Refs #23919 -- Replaced errno checking with PEP 3151 exceptions.Tim Graham2017-01-251-2/+2
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+0
|
* Removed shutil.copystat copied from stdlib (added to support an old Python?).Tim Graham2014-12-241-13/+2
|
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-2/+2
|
* Fixed all E226 violationsAlex Gaynor2013-11-031-1/+1
|
* Fixed flake8 E251 violationsMilton Mazzarri2013-11-031-1/+1
|
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+2
|
* Start attacking E231 violationsAlex Gaynor2013-10-241-1/+1
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+1
|
* Fixed #20486 -- Ensure that file_move_safe raises an error if the ↵Russell Keith-Magee2013-06-201-0/+4
| | | | | | destination already exists. Thanks to kux for the report, and Russ Webber for the patch.
* Replaced `and...or...` constructs with PEP 308 conditional expressions.Ramiro Morales2013-05-261-3/+3
|
* [py3] Fixed slow path through file_move_safeKaren Tracey2012-08-181-1/+1
| | | | This path is taken on Windows.
* Made more extensive usage of context managers with open.Claude Paroz2012-05-051-4/+1
|
* Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz2012-04-291-1/+1
| | | | | Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
* Fixed #8900: Added errno=13 (permission denied) to the class of ignored ↵Karen Tracey2009-04-051-10/+9
| | | | | | | | | | | | | | OSErrors when attempting to delete the old file in file_move_safe. This error was seen on Windows with Pythons < 2.5. In the case where the error was seen, the old file is auto-deleted on close anyway by the Windows-specific NamedTemporaryFile support. No new test because the failure could be seen when running the file_uploads test with Python 2.3/2.4 on Windows. With this fix file_uploads runs clean in that environment. While in the neignborhood fixed up the docstrings to better match the reality of what the code does and what the function is named. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8673: fixed a missing import in `django.core.files.move`.Jacob Kaplan-Moss2008-08-291-0/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@8720 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8203 -- Fixed temporary file deleation on Windows and a couple of edgeMalcolm Tredinnick2008-08-231-21/+49
| | | | | | | | cases on Unix-like systems. Patch from snaury. Testing and verification on Windows, Mac and Linux from cgrady and ramikassab. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8493 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4948, a race condition in file saving. Thanks to Martin von Löwis, ↵Jacob Kaplan-Moss2008-08-111-11/+12
| | | | | | who diagnosed the problem and pointed the way to a fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2070: refactored Django's file upload capabilities.Jacob Kaplan-Moss2008-07-011-0/+59
A description of the new features can be found in the new [http://www.djangoproject.com/documentation/upload_handing/ upload handling documentation]; the executive summary is that Django will now happily handle uploads of large files without issues. This changes the representation of uploaded files from dictionaries to bona fide objects; see BackwardsIncompatibleChanges for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7814 bcc190cf-cafb-0310-a4f2-bffc1f526a37