|
@@ -68,6 +68,9 @@ for fname in args.inputs:
|
|
|
guard_res = guard_re.match(line)
|
|
|
if not inc_res and not guard_res:
|
|
|
file.write(line)
|
|
|
+
|
|
|
+ file.flush()
|
|
|
+ os.fsync(file.fileno())
|
|
|
print ("done."),
|
|
|
|
|
|
if not is_c:
|
|
@@ -77,6 +80,11 @@ if not is_c:
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+file.flush()
|
|
|
+os.fsync(file.fileno())
|
|
|
file.close()
|
|
|
|
|
|
print ("The size of "+args.outfile+" is "+ str(os.path.getsize(args.outfile))+" Bytes.")
|