Added a fix for old now unversioned files with readonly set.
This commit is contained in:
parent
2bb0fa671d
commit
b327058ccb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue