mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 01:25:34 +00:00
Fixed migration for one file
This commit is contained in:
@@ -92,9 +92,12 @@ def main():
|
|||||||
path = sys.argv[1]
|
path = sys.argv[1]
|
||||||
if not os.path.isabs(path):
|
if not os.path.isabs(path):
|
||||||
path = os.path.abspath(path)
|
path = os.path.abspath(path)
|
||||||
for root, dirs, files in os.walk(path):
|
files = [path]
|
||||||
for file_name in files:
|
if os.path.isdir(path):
|
||||||
file_path = os.path.join(root, file_name)
|
files = (os.path.join(root, name)
|
||||||
|
for (root, dirs, files) in os.walk(path)
|
||||||
|
for name in files)
|
||||||
|
for file_path in files:
|
||||||
migrated = try_migrate(file_path)
|
migrated = try_migrate(file_path)
|
||||||
status = 'OK' if migrated else 'FAIL'
|
status = 'OK' if migrated else 'FAIL'
|
||||||
sys.stderr.write("[{}] {}\n".format(status, file_path))
|
sys.stderr.write("[{}] {}\n".format(status, file_path))
|
||||||
|
|||||||
Reference in New Issue
Block a user