Cleanup empty dirs

This commit is contained in:
HelloZeroNet 2016-03-26 00:22:27 +01:00
parent 045a57491a
commit 6d222b6ed7
2 changed files with 20 additions and 2 deletions

View file

@ -163,6 +163,10 @@ class SiteStorage:
file_path = self.getPath(inner_path)
os.unlink(file_path)
def deleteDir(self, inner_path):
dir_path = self.getPath(inner_path)
os.rmdir(dir_path)
# List files from a directory
def list(self, dir_inner_path):
directory = self.getPath(dir_inner_path)