Loading services/webapp/code/rosetta/core_app/api.py +6 −2 Original line number Original line Diff line number Diff line Loading @@ -516,10 +516,14 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI): # Did we just get a "cannot stat - No such file or directory error? # Did we just get a "cannot stat - No such file or directory error? if 'No such file or directory' in out.stderr: if 'No such file or directory' in out.stderr: # Create the folder if this was the root for the user (storage base path) if path == '/': if path == '/': self.mkdir(self.sanitize_and_prepare_shell_path('/', storage, user), user, storage, force=True) self.mkdir(self.sanitize_and_prepare_shell_path('/', storage, user), user, storage, force=True) else: # Return (empty) data return data return data else: else: raise Exception(out.stderr) raise Exception(out.stderr) Loading Loading
services/webapp/code/rosetta/core_app/api.py +6 −2 Original line number Original line Diff line number Diff line Loading @@ -516,10 +516,14 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI): # Did we just get a "cannot stat - No such file or directory error? # Did we just get a "cannot stat - No such file or directory error? if 'No such file or directory' in out.stderr: if 'No such file or directory' in out.stderr: # Create the folder if this was the root for the user (storage base path) if path == '/': if path == '/': self.mkdir(self.sanitize_and_prepare_shell_path('/', storage, user), user, storage, force=True) self.mkdir(self.sanitize_and_prepare_shell_path('/', storage, user), user, storage, force=True) else: # Return (empty) data return data return data else: else: raise Exception(out.stderr) raise Exception(out.stderr) Loading