Use https
This commit is contained in:
4
python/reg-rename.py
Normal file → Executable file
4
python/reg-rename.py
Normal file → Executable file
@@ -74,7 +74,9 @@ class RAction:
|
||||
if test:
|
||||
return "R \"%s\" will be renamed to \"%s\"" % ( _from, _to )
|
||||
else:
|
||||
os.rename( os.path.join( root, _from ), os.path.join( root, _to ) )
|
||||
target_loc = os.path.join( root, _to )
|
||||
os.makedirs( os.path.dirname( target_loc ), exist_ok = True )
|
||||
os.rename( os.path.join( root, _from ), target_loc )
|
||||
return "R \"%s\" -> \"%s\"" % ( _from, _to )
|
||||
|
||||
class RegReplace:
|
||||
|
Reference in New Issue
Block a user