Class DriveFolder


public class DriveFolder extends DriveItemFolderType
A wrapper around a DriveItem that represents a folder.
  • Constructor Details

    • DriveFolder

      public DriveFolder(DriveItem delegate)
      Creates a new DriveFolder that wraps the given delegate DriveItem.
      Parameters:
      delegate - the drive item to wrap
  • Method Details

    • isRoot

      public boolean isRoot()
      Describes if this folder is the root of the drive or not.
      Returns:
      true if this folder is the root folder of the drive; else, false.
    • getFolderAttributes

      public Folder getFolderAttributes()
      Gets the attributes associated with this folder.
      Returns:
      the folder attributes
      See Also:
    • isSpecialFolder

      public boolean isSpecialFolder()
      Describes if this folder is a special folder.
      Returns:
      true if this folder is special; else, false.
      See Also:
    • getSpecialFolder

      public SpecialFolder getSpecialFolder()
      Gets the special folder attributes. Can be null.
      Returns:
      the special folder attributes
    • toString

      public String toString()
      Overrides:
      toString in class Object