Skip to content

Commit

Permalink
[server] ignore file begining with in #170
Browse files Browse the repository at this point in the history
  • Loading branch information
Tointoin committed Apr 8, 2020
1 parent 35842c4 commit 50ad3ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ def handle(self, *args, **options):
for root, dirs, files in os.walk(settings.MEDIA_ROOT):
for f in files:
path = os.path.join(root, f)
if path not in media_paths:
if path[0] != '.' and path not in media_paths:
os.remove(path)
# TODO remove empty folders

0 comments on commit 50ad3ba

Please sign in to comment.