Commit 83b06a49 by Őry Máté

store: fix removing before move

parent c70536ff
...@@ -18,11 +18,6 @@ def update_new(name): ...@@ -18,11 +18,6 @@ def update_new(name):
os.mkdir(top_dir) os.mkdir(top_dir)
except OSError: except OSError:
pass pass
try:
os.unlink(os.path.join(top_dir, str(COUNT)))
except OSError:
print "Failed to unlink " + str(COUNT) + ".\n"
print e
for i in range(1, COUNT): for i in range(1, COUNT):
try: try:
os.rename(os.path.join(top_dir, str(i+1)), os.path.join(top_dir, str(i))) os.rename(os.path.join(top_dir, str(i+1)), os.path.join(top_dir, str(i)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment