mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-03 16:49:10 +02:00
Remove unused file.
This commit is contained in:
parent
a1fca515bd
commit
e9f422be84
1 changed files with 0 additions and 23 deletions
|
@ -1,23 +0,0 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
usage = '<from directory> <to directory>'
|
||||
|
||||
if len(sys.argv) < 3:
|
||||
print 'Usage: python ' + sys.argv[0] + ' ' + usage
|
||||
sys.exit(1)
|
||||
|
||||
from_directory = sys.argv[1]
|
||||
to_directory = sys.argv[2]
|
||||
|
||||
for file_name in os.listdir(from_directory):
|
||||
print file_name
|
||||
from_file_time = os.path.getmtime(from_directory + '/' + file_name)
|
||||
if os.path.isfile(to_directory + '/' + file_name):
|
||||
to_file_time = os.path.getmtime(to_directory + '/' + file_name)
|
||||
if from_file_time > to_file_time:
|
||||
print 'Seems like you have newer version for file ' + file_name + '.'
|
||||
answer = raw_input('Should I copy it? [y/n] ')
|
||||
if answer.lower() in ['y', 'yes']:
|
||||
pass
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue