All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.cometway.jerminal.commands.rm

com.cometway.jerminal.commands.JerminalCommand
   |
   +----com.cometway.jerminal.commands.UnixFileCommand
           |
           +----com.cometway.jerminal.commands.rm

public class rm
extends UnixFileCommand
This command removes files and directories from the local file system. There are two flags which the rm command will accept: the r flag and the i flag. The r flag tells the rm command to recurse through directories and subdirectories when removing (this could be dangerous!). The i flag will make the rm command ask for a confirmation before deleting anything.

Synopsis:

rm (flags) [pathname1] (pathname2) (pathname3) ...
This removes [pathname1] and if they exist, (pathname2) and (pathname3). The rm command will assume all the arguments are pathnames and are to be removed.


Constructor Index

 o rm(JerminalSession)

Method Index

 o evaluate(Vector)
This method is called by the JerminalSession when it uses this command.
 o removeDir(File, boolean)

Constructors

 o rm
 public rm(JerminalSession j) throws UnauthorizedAccessException

Methods

 o removeDir
 protected void removeDir(File dir,
                          boolean i)
 o evaluate
 public Object evaluate(Vector operands)
This method is called by the JerminalSession when it uses this command.

Overrides:
evaluate in class JerminalCommand

All Packages  Class Hierarchy  This Package  Previous  Next  Index