Package com.google.cloud.hadoop.gcsio
Class FolderInfo
- java.lang.Object
-
- com.google.cloud.hadoop.gcsio.FolderInfo
-
public class FolderInfo extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringBUCKET_PREFIXstatic StringFOLDER_PREFIXstatic StringPATH
-
Constructor Summary
Constructors Constructor Description FolderInfo(com.google.storage.control.v2.Folder folder)Constructs an instance of FolderInfo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.google.storage.control.v2.FoldercreateFolderInfoObject(String bucketName, String folderName)Returns the folder object with provided bucket and pathStringgetBucket()Gets the path of this file or directory.StringgetFolderName()Returns the folder name, ie path excluding the bucket nameStringgetParentFolderName()Returns the parent folder name if exists, else returns empty stringbooleanisBucket()StringtoString()Gets string representation of this instance.
-
-
-
Field Detail
-
BUCKET_PREFIX
public static final String BUCKET_PREFIX
- See Also:
- Constant Field Values
-
FOLDER_PREFIX
public static final String FOLDER_PREFIX
- See Also:
- Constant Field Values
-
PATH
public static final String PATH
- See Also:
- Constant Field Values
-
-
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
-
-