-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Datasets: add azcopy download support
- Loading branch information
1 parent
bd9c757
commit 38113c1
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
"""Basic mock-up of the azcopy CLI. | ||
Only needed until azcopy supports local <-> local transfers | ||
* https://github.com/Azure/azure-storage-azcopy/issues/2669 | ||
""" | ||
|
||
import argparse | ||
import shutil | ||
|
||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser() | ||
subparsers = parser.add_subparsers() | ||
sync = subparsers.add_parser("sync") | ||
sync.add_argument("source") | ||
sync.add_argument("destination") | ||
args, _ = parser.parse_known_args() | ||
shutil.copytree(args.source, args.destination, dirs_exist_ok=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters