How to give the recusive option (-R) to the M command (change the file mod) in emacs dired?

StackOverflow https://stackoverflow.com/questions/10863682

  •  12-06-2021
  •  | 
  •  

Frage

When i type "-R 777" I get: file-modes-symbolic-to-number: Parse error in modes near `R 777'.

War es hilfreich?

Lösung

Recursive operations aren't supported by dired-do-chmod.

It's easy to do this as a shell command, though:
M-! chmod -R 777 (files) RET

Alternatively, the Dired+ library provides a diredp-do-chmod-recursive command for this, bound to M-+M (and added only a few days ago, apparently, so that was a well-timed question).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top