Show More
@@ -347,6 +347,9 b' class ContentsManager(LoggingConfigurable):' | |||||
347 | from_path must be a full path to a file. |
|
347 | from_path must be a full path to a file. | |
348 | """ |
|
348 | """ | |
349 | path = from_path.strip('/') |
|
349 | path = from_path.strip('/') | |
|
350 | if to_path is not None: | |||
|
351 | to_path = to_path.strip('/') | |||
|
352 | ||||
350 | if '/' in path: |
|
353 | if '/' in path: | |
351 | from_dir, from_name = path.rsplit('/', 1) |
|
354 | from_dir, from_name = path.rsplit('/', 1) | |
352 | else: |
|
355 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now