help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

delete-file using wildcard


From: ishi soichi
Subject: delete-file using wildcard
Date: Sat, 29 Oct 2011 16:54:15 +0900

I have a question about Emacs Lisp, which I believe is simple enough for most of you.


I would like to delete files in a directory.
When doing so with Linux command, we usually do,

> rm *

at that directory.

the wildcard command does not seem work similarly in Emacs Lisp.

(delete-file (subseq (file-expand-wildcards "~/Desktop/*") -1))

doesn't work.

Could anyone help me out?

soichi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]