reformat code
This commit is contained in:
@@ -21,14 +21,14 @@ class WOFileUtils():
|
||||
Log.info(self, "Removing {0:65}".format(file), end=' ')
|
||||
os.remove(file)
|
||||
Log.info(self, "{0}".format("[" + Log.ENDC + "Done" +
|
||||
Log.OKBLUE + "]"))
|
||||
Log.OKBLUE + "]"))
|
||||
Log.debug(self, 'file Removed')
|
||||
if os.path.isdir(file):
|
||||
try:
|
||||
Log.info(self, "Removing {0:65}".format(file), end=' ')
|
||||
shutil.rmtree(file)
|
||||
Log.info(self, "{0}".format("[" + Log.ENDC + "Done" +
|
||||
Log.OKBLUE + "]"))
|
||||
Log.OKBLUE + "]"))
|
||||
except shutil.Error as e:
|
||||
Log.debug(self, "{err}".format(err=str(e.reason)))
|
||||
Log.error(self, 'Unable to Remove file ')
|
||||
|
||||
Reference in New Issue
Block a user