Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
+3
-3
| #!/usr/bin/env python3 | ||
| """Standalone CLI for zipmount (used by the npm package).""" | ||
| """Standalone CLI for zipmount (used by the npm package). Runs from ~/.zipmount.""" | ||
@@ -18,4 +18,4 @@ import argparse | ||
| # Set up paths for imports | ||
| install_dir = os.path.dirname(os.path.abspath(__file__)) | ||
| # Set up paths — everything runs from ~/.zipmount | ||
| install_dir = os.path.expanduser("~/.zipmount") | ||
| venv_site = os.path.join(install_dir, ".venv", "lib") | ||
@@ -22,0 +22,0 @@ if os.path.isdir(venv_site): |
+6
-1
@@ -327,3 +327,8 @@ #!/usr/bin/env python3 | ||
| self._journal.log({'op': 'truncate', 'path': path, 'length': length}) | ||
| self.files[path] = self.files[path][:length] | ||
| content = self.files[path] | ||
| if length < len(content): | ||
| content = content[:length] | ||
| elif length > len(content): | ||
| content = content + b'\x00' * (length - len(content)) | ||
| self.files[path] = content | ||
| self._dirty = True | ||
@@ -330,0 +335,0 @@ |
+1
-1
| { | ||
| "name": "zipmount", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Mount ZIP files as virtual directories — ls, cat, vim, VS Code all work natively", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
47931
160.88%7
40%414
1.22%