Added a fix for old now unversioned files with readonly set.

This commit is contained in:
Brian 2014-05-08 19:17:36 -06:00
parent 2bb0fa671d
commit b327058ccb
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@
# todo: switch to faster method of calling p4 fstat on an entire directory and parsing it's output
# todo: add option of using send2trash
import inspect, os, re, subprocess, sys, traceback
import inspect, os, re, stat, subprocess, sys, traceback
re_remove_comment = re.compile( "#.*$" )
@ -118,6 +118,7 @@ def main( ):
continue
print( "| " + file + " is unversioned, removing it." )
os.chmod( path, stat.S_IWRITE )
os.remove( path )
dirs_copy = dirs