Cleanup empty dirs
This commit is contained in:
parent
045a57491a
commit
6d222b6ed7
2 changed files with 20 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue