forked from machacekondra/python-rrmngmnt
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy file with correct permissions and owner (#58)
* Copy file with correct permissions and owner * Patch Set #2 - move function to operatingsystem module to be consistent with os.stat - add function get_file_stats - add positive and negative tests * Patch Set #3 - fix tests * fix * Patch Set #4 - change function names - get octal permissions from stat * Patch Set #5 - fix tests - decode all output to UTF-8 * Patch Set #6 - remove decode of output * Patch Set #7 - fix functions names under copy_to function * Patch Set #8 - give possbility to change permission and ownership of the file, when file copied from other resource I believe it no need to check if ownership is a tuple, because we explicitly define it under docstring * Patch Set #9 - fix call to function fs.chown
- Loading branch information
1 parent
ede0c96
commit 4326f0e
Showing
4 changed files
with
284 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters