##// END OF EJS Templates
BUG: Allow for the possibility that to_path is empty string....
Scott Sanderson -
Show More
@@ -362,7 +362,7 b' class ContentsManager(LoggingConfigurable):'
362 if model['type'] == 'directory':
362 if model['type'] == 'directory':
363 raise HTTPError(400, "Can't copy directories")
363 raise HTTPError(400, "Can't copy directories")
364
364
365 if not to_path:
365 if to_path is None:
366 to_path = from_dir
366 to_path = from_dir
367 if self.dir_exists(to_path):
367 if self.dir_exists(to_path):
368 name = copy_pat.sub(u'.', from_name)
368 name = copy_pat.sub(u'.', from_name)
General Comments 0
You need to be logged in to leave comments. Login now