-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
17 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
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 |
---|---|---|
|
@@ -1158,12 +1158,6 @@ def _parseArgs(rawArgs: Optional[List[str]] = None): | |
- ratarmount folder1 folder2 mountpoint | ||
- ratarmount folder archive.zip folder | ||
- ratarmount -o modules=subdir,subdir=squashfs-root archive.squashfs mountpoint | ||
- ratarmount http://server.org:80/archive.rar folder folder | ||
- ratarmount ssh://hostname:22/relativefolder/ mountpoint | ||
- ratarmount ssh://hostname:22//tmp/tmp-abcdef/ mountpoint | ||
- ratarmount github://mxmlnkn:[email protected]/tests/single-file.tar mountpoint | ||
- AWS_ACCESS_KEY_ID=aaaaaaaaaaaaaaaaaaaa AWS_SECRET_ACCESS_KEY=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb \\ | ||
ratarmount s3://127.0.0.1/bucket/single-file.tar mounted | ||
For further information, see the ReadMe on the project's homepage: | ||
|
@@ -1460,9 +1454,8 @@ def _parseArgs(rawArgs: Optional[List[str]] = None): | |
# This is a hack but because we have two positional arguments (and want that reflected in the auto-generated help), | ||
# all positional arguments, including the mountpath will be parsed into the tar file path's namespace and we have to | ||
# manually separate them depending on the type. | ||
lastArgument = args.mount_source[-1] | ||
if '://' not in lastArgument and (os.path.isdir(lastArgument) or not os.path.exists(lastArgument)): | ||
args.mount_point = lastArgument | ||
if os.path.isdir(args.mount_source[-1]) or not os.path.exists(args.mount_source[-1]): | ||
args.mount_point = args.mount_source[-1] | ||
args.mount_source = args.mount_source[:-1] | ||
if not args.mount_source and not args.write_overlay: | ||
raise argparse.ArgumentTypeError( | ||
|
@@ -1516,8 +1509,6 @@ def checkMountSource(path): | |
args.mount_point = os.path.splitext(args.mount_source[0])[0] | ||
else: | ||
args.mount_point = autoMountPoint | ||
if '://' in args.mount_point: | ||
args.mount_point = "ratarmount.mounted" | ||
args.mount_point = os.path.abspath(args.mount_point) | ||
|
||
# Preprocess the --index-folders list as a string argument | ||
|