mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Copy only logs that need to be copied.
This commit is contained in:
@@ -11,6 +11,7 @@ REG_IP4=re.compile(r'\d+\.\d+\.\d+\.\d+') # Matches IPv4 addresses.
|
||||
REG_CONNECT=re.compile(r'from [^\|]+\|\| BYOND v([0-9]+)$') # Matches IPv4 addresses.
|
||||
|
||||
def fix(in_file, out_file):
|
||||
if not os.path.isfile(out_file) or os.stat(in_file).st_mtime - os.stat(out_file).st_mtime > 1:
|
||||
print(' {0} -> {1}'.format(in_file,out_file))
|
||||
if os.path.isfile(out_file):
|
||||
os.remove(out_file)
|
||||
|
||||
Reference in New Issue
Block a user