Commit fb8f0c17 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis

file: Add proper message when creating remote dirs

When uploading a directory recursively, intermediate directory
objects are created on the server. Log these actions in stderr with
a 'remote:' prefix so that they do not get misinterpreted as local
actions (mkdir).
Signed-off-by: default avatarDimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
parent 289fb633
......@@ -998,7 +998,7 @@ class file_upload(_PithosContainer):
rel_path = rpath + top.split(lpath)[1]
except IndexError:
rel_path = rpath
self.error('mkdir /%s/%s' % (
self.error('remote: mkdir /%s/%s' % (
self.client.container, rel_path))
self.client.create_directory(rel_path)
for f in files:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment