summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfbin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fbin.py b/fbin.py
index a718ac9..e1c1853 100755
--- a/fbin.py
+++ b/fbin.py
@@ -140,6 +140,9 @@ class Application(object):
session.delete(file)
session.commit()
os.unlink(file.get_path())
+ thumbfile = os.path.join(settings.thumb_directory, file.hash + '.jpg')
+ if os.path.exists(thumbfile):
+ os.unlink(thumbfile)
except:
raise
finally: