0

With archivemount, one can mount a zip file. Is there any way to treat a zip file just like a directory in dired?

The we wouldn't have to unzip the archive, which takes time and you probably need to clean up as well. Another alternative is mounting, but it takes up a mount point and you have to deal with clean ups.

A transparent mount would solve this, just like in HURD;)

Drew
  • 75,699
  • 9
  • 109
  • 225
Jason Hunter
  • 519
  • 2
  • 9

1 Answers1

1

This is built-in for some systems. Refer to:

C-hig (tramp)Archive file names

TRAMP offers also transparent access to files inside file archives. This is possible only on hosts which have installed GVFS (the GNOME Virtual File System), *note GVFS-based methods::. Internally, file archives are mounted via the GVFS ‘archive’ method.

See also https://en.wikipedia.org/wiki/GVFS

Obviously this isn't a regular filesystem, and so you can't do everything you could normally do in dired.

YMMV.

phils
  • 48,657
  • 3
  • 76
  • 115
  • In short, if you want to see `/path/to/file.zip` in dired, open it like `C-x d /path/to/file.zip/` in Emacs - note the trailing slash. This works on Linux only. – Michael Albinus Jun 10 '23 at 07:16