Revision a0a61f30
b/kamaki/cli/commands/pithos.py | ||
---|---|---|
1100 | 1100 |
print('%s is not a regular file' % fpath) |
1101 | 1101 |
else: |
1102 | 1102 |
if not path.isfile(lpath): |
1103 |
raiseCLIError('%s is not a regular file' % lpath) |
|
1103 |
raiseCLIError(('%s is not aregular file' % lpath) if ( |
|
1104 |
path.exists(lpath)) else '%s does not exist' % lpath) |
|
1104 | 1105 |
try: |
1105 | 1106 |
robj = self.client.get_object_info(rpath) |
1106 | 1107 |
if remote_path and self._is_dir(robj): |
Also available in: Unified diff