Class FolderInfo


  • public class FolderInfo
    extends Object
    • Constructor Detail

      • FolderInfo

        public FolderInfo​(@Nonnull
                          com.google.storage.control.v2.Folder folder)
        Constructs an instance of FolderInfo.
        Parameters:
        folder - Information about the underlying folder.
    • Method Detail

      • createFolderInfoObject

        public static com.google.storage.control.v2.Folder createFolderInfoObject​(String bucketName,
                                                                                  String folderName)
        Returns the folder object with provided bucket and path
        Parameters:
        bucketName -
        folderName -
        Returns:
        FolderInfo object
      • getBucket

        public String getBucket()
        Gets the path of this file or directory.
      • getFolderName

        public String getFolderName()
        Returns the folder name, ie path excluding the bucket name
      • isBucket

        public boolean isBucket()
      • getParentFolderName

        public String getParentFolderName()
        Returns the parent folder name if exists, else returns empty string
        Returns:
        parent folderName
      • toString

        public String toString()
        Gets string representation of this instance.
        Overrides:
        toString in class Object