List files in a directory
wsmind
remi.papillie at gmail.com
Wed Jul 7 16:06:33 UTC 2010
Using the glob: syntax allows you to leverage the power of
http://docs.python.org/library/glob.html standard python glob .
Thus you can use glob:*/* in order to retrieve every file present exactly
one level under the parent directory specified (empty dirs won't show up).
It seems that cumulating glob: patterns makes the results to add up :
hg locate -r 123 "glob:my-directory/*" "glob:my-directory/*/*"
will show file in my directory and all its children directories
(non-recursive).
--
View this message in context: http://mercurial.808500.n3.nabble.com/List-files-in-a-directory-tp949176p949452.html
Sent from the General mailing list archive at Nabble.com.
More information about the Mercurial
mailing list