Skip to content

Commit 5f0a475

Browse files
authored
restored setfile (#280)
1 parent 047f359 commit 5f0a475

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
12+
- Restored deprecated `setfile` method with deprecation warning to change to `writefile`
13+
814
## [2.4.4] - 2019-02-23
915

1016
### Fixed

fs/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version, used in module and setup.py.
22
"""
3-
__version__ = "2.4.4"
3+
__version__ = "2.4.5a0"

fs/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,8 @@ def writefile(
13561356
) as dst_file:
13571357
tools.copy_file_data(file, dst_file)
13581358

1359+
setfile = _new_name(writefile, "setfile")
1360+
13591361
def settimes(self, path, accessed=None, modified=None):
13601362
# type: (Text, Optional[datetime], Optional[datetime]) -> None
13611363
"""Set the accessed and modified time on a resource.

0 commit comments

Comments
 (0)