Skip to content

Commit

Permalink
Create the mount point in the current working directory
Browse files Browse the repository at this point in the history
If no mount point is provided on the command line, create a mount point
in the current working directory, instead of next to the input archive.
This seems more "natural".
  • Loading branch information
fdegros committed Jan 12, 2025
1 parent 27e5029 commit 8af187f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on-the-go decompression and caching for maximum efficiency.

**mount-zip** automatically creates the target mount point if it doesn't exist
yet. If no mount point is provided, **mount-zip** creates a mount point in the
same directory as the ZIP archive.
current working directory.

# OPTIONS

Expand Down
2 changes: 1 addition & 1 deletion main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ int main(int argc, char* argv[]) try {
PLOG(ERROR) << "Cannot create mount point " << Path(param.mount_point);
}
} else {
param.mount_point = Path(param.filename).WithoutExtension();
param.mount_point = Path(param.filename).Split().second.WithoutExtension();
const auto n = param.mount_point.size();

for (int i = 0;;) {
Expand Down
2 changes: 1 addition & 1 deletion mount-zip.1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ provides on-the-go decompression and caching for maximum efficiency.
\f[B]mount-zip\f[R] automatically creates the target mount point if it
doesn\[cq]t exist yet.
If no mount point is provided, \f[B]mount-zip\f[R] creates a mount point
in the same directory as the ZIP archive.
in the current working directory.
.SH OPTIONS
.TP
\f[B]--help\f[R] or \f[B]-h\f[R]
Expand Down

0 comments on commit 8af187f

Please sign in to comment.