[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [works on the comman line]
From: |
Uwe Brauer |
Subject: |
Re: [works on the comman line] |
Date: |
Mon, 21 Feb 2022 20:38:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> Uwe Brauer wrote:
> But here -j (the short --junk-paths) doesn't don't add
> anything (?) since the `t' in (dired-get-marked-files t) has
> already removed the path ... so then why doesn't _that_ work?
> Hm ...
> But this works for me:
> (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) ))
Thanks, the point however is, as I said.
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.
2. If I use however dired-do-compress then an additional directory
is created.
Regards
smime.p7s
Description: S/MIME cryptographic signature
- 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 <=
- Re: [works on the comman line], Emanuel Berg, 2022/02/25
- Re: [works on the comman line] (was: [a directory is also created]), Emanuel Berg, 2022/02/20