Firefish 0.5.10

gov.lbl.dsd.firefish.client
Class FireLs

java.lang.Object
  extended bygov.lbl.dsd.util.CmdLineProgram
      extended bygov.lbl.dsd.firefish.client.FireCmdLineProgram
          extended bygov.lbl.dsd.firefish.client.FireLs

public class FireLs
extends gov.lbl.dsd.firefish.client.FireCmdLineProgram

Command line program that lists directory contents. See help on usage;

Version:
$Revision: 1.4 $, $Date: 2004/02/06 23:05:34 $

Method Summary
 boolean isSymbolicLink(File file)
           
 File[] listRecursively(File dir, FilenameFilter filter, int depth)
          list recursively the files in all subdirectories.
static void main(String[] args)
          Run this program without any arguments to get help (including descriptions of all options).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
Run this program without any arguments to get help (including descriptions of all options).


listRecursively

public File[] listRecursively(File dir,
                              FilenameFilter filter,
                              int depth)
list recursively the files in all subdirectories. Returns a list of the files in the directory and recursively subdirectories specified by this File that satisfy the specified filter.

Parameters:
filter - the filename filter
depth - the maximum depth of recursion With a maximum depth of zero, the method traverses the files in the given dir.
Returns:
the list as an array String []
Throws:
SecurityException - thrown If a security manager exists and its SecurityManager.checkRead(java.io.FileDescriptor) method denies read access to the file.

isSymbolicLink

public boolean isSymbolicLink(File file)
                       throws IOException
Throws:
IOException

Firefish 0.5.10

Jump to the Firefish Homepage