Your browser does not allow this site to store cookies and other data. Some functionality on this site may not work without them. See Privacy Policy for details on how we would use cookies.


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
 voidcomplete(Location loc, SftException error)
           
 booleanenterDir(Directory dir)
          Invoked when a directory is about to be entered and its contents are to be processed.
 voidleaveDir(Directory dir)
          Invoked when the recursive processing of a directory has finished.
 voidlist(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


===AUTO_SCHEMA_MARKUP===