[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [works on the comman line]
From: |
Emanuel Berg |
Subject: |
Re: [works on the comman line] |
Date: |
Sat, 26 Feb 2022 01:47:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Uwe Brauer wrote:
>> (defun dired-zip-files ()
>> (interactive)
>> (dolist (f (dired-get-marked-files))
>> (start-process "zip" nil "zip" "-9" "--junk-path" (concat f ".zip") f)
>> (revert-buffer) ))
>
> 1. If I open the zip file generated by your method via unzip
> on the command like, it just returns that file without
> any additional directory.
What additional directory are you talking about?
> 2. If I use however dired-do-compress then an additional
> directory is created.
But `dired-do-compress' creates .gz files (or a .tar.gz for
a directory) so that's another command from the get-go and to
unzip it one cannot even use unzip(1).
Still ... I use 'gunzip -fk' for .gz (and 'tar xfz' .tar.gz)
and I just tried it, it works as expected and there is no
"additional directory" ...
https://dataswamp.org/~incal/conf/.zsh/zip
--
underground experts united
https://dataswamp.org/~incal
- how to generate a zip file (not a directory) within dired, Uwe Brauer, 2022/02/20
- Re: how to generate a zip file (not a directory) within dired, Jean Louis, 2022/02/20
- Re: how to generate a zip file (not a directory) within dired, Uwe Brauer, 2022/02/20
- [a directory is also created] (was: how to generate a zip file (not a directory) within dired), Uwe Brauer, 2022/02/20
- [works on the comman line] (was: [a directory is also created]), Uwe Brauer, 2022/02/20
- Re: [works on the comman line] (was: [a directory is also created]), Jean Louis, 2022/02/20
- Re: [works on the comman line], Uwe Brauer, 2022/02/20
- Re: [works on the comman line], Uwe Brauer, 2022/02/20
- Re: [works on the comman line], Emanuel Berg, 2022/02/20
- Re: [works on the comman line], Uwe Brauer, 2022/02/21
- Re: [works on the comman line],
Emanuel Berg <=
- Re: [works on the comman line] (was: [a directory is also created]), Emanuel Berg, 2022/02/20