Your browser does not allow storing cookies. We recommend enabling them.


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



 

 
Highlights from the SSH.COM blog:

  • Cryptomining with the SSH protocol: what big enterprises need to know about it

    Cryptomining malware is primarily thought of as targeting desktops and laptops and is used to hijack system resources to mine cryptocurrency.
    Read more
  • SLAM the door shut on traditional privileged access management

    Did you know that something as trivial-sounding as granting access for your developers or third parties to a product development environment can throw a gorilla-sized monkey wrench into your operations and productivity?
    Read more
  • We broke the IT security perimeter

    Everyone understands the concept of a security perimeter. You only gain access if you are identified and authorized to do so.
    Read more