$finddir

From Scriptwiki
Revision as of 19:02, 10 May 2008 by Aca20031 (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Searches the specified directory for directories matching the wild card given.

$finddir(dir,wildcard,N [,depth] [,@window | command])[ .shortfn ]
  • Dir is the directory to start the search in.
  • Wildcard is the wildcard matchtext to attempt to match against directory names.
  • N is the number of directories to return. 0 for all possible.
  • Depth is the number of subdirectories deep to search. This is optional, and will be infinite unless specified.
  • @window is optional. If specified, it will print all directory results into the given window's listbox. The window must have a listbox.
  • Command is optional. If specified, it will perform a command for every possible match. $1- will be the directory found.
  • .shortfn is optional. If specified, it will return the short version of the path. See $shortfn for a brief explanation.

Example

alias listdirs { window -l @list | noop $finddir($disk(1).path,*,0,@list) }

See Also

$finddirn