com.ssh.sft
Interface Policies.Dir

All Known Subinterfaces:
Policies.All, Policies.CopyDir, Policies.MoveDir, Policies.RemoveDir
All Known Implementing Classes:
AbstractPolicy
Enclosing interface:
Policies

public static interface Policies.Dir

The policy interface for recursive operations on directories.


Method Summary
 void complete(Location loc, SftException error)
           
 boolean enterDir(Directory dir)
          Invoked when a directory is about to be entered and its contents are to be processed.
 void leaveDir(Directory dir)
          Invoked when the recursive processing of a directory has finished.
 void list(File file)
           
 

Method Detail

enterDir

public boolean enterDir(Directory dir)
Invoked when a directory is about to be entered and its contents are to be processed.

Parameters:
dir - the directory to be entered
Returns:
true if the directory should be entered, false otherwise
Throws:
AbortedException - if the entire ongoing operation should be aborted

leaveDir

public void leaveDir(Directory dir)
Invoked when the recursive processing of a directory has finished. This is only a notification.

Parameters:
dir - the directory that is left

list

public void list(File file)

complete

public void complete(Location loc,
                     SftException error)
              throws SftException
Throws:
SftException