Class ShareFileItem
java.lang.Object
com.azure.storage.file.share.models.ShareFileItem
Contains file or directory reference information in the storage File service.
-
Constructor Summary
ConstructorsConstructorDescriptionShareFileItem
(String name, boolean isDirectory, Long fileSize) Creates an instance of file or directory reference information about a specific Share.ShareFileItem
(String name, boolean isDirectory, String id, ShareFileItemProperties properties, EnumSet<NtfsFileAttributes> fileAttributes, String permissionKey, Long fileSize) Creates an instance of file or directory reference information about a specific Share. -
Method Summary
Modifier and TypeMethodDescriptionGets the NTFS attributes of the file or directory.Gets the size of a file,null
if the reference is a directory.getId()
Gets the ID of the file or directory.getName()
Gets the name of the file or the directory.Gets the permission key of the file or directory.Gets the properties of the file or directory.boolean
Gets a boolean set to true if the reference is a directory, false if the reference is a file.
-
Constructor Details
-
ShareFileItem
Creates an instance of file or directory reference information about a specific Share.- Parameters:
name
- Name of the file or the directory.isDirectory
- A boolean set to true if the reference is a directory, false if the reference is a file.fileSize
- Size of a file. Passnull
if the reference is a directory.
-
-
Method Details
-
getName
Gets the name of the file or the directory.- Returns:
- Name of the file or the directory.
-
isDirectory
public boolean isDirectory()Gets a boolean set to true if the reference is a directory, false if the reference is a file.- Returns:
- True if the reference is a directory, or false if the reference is a file.
-
getFileSize
Gets the size of a file,null
if the reference is a directory.- Returns:
- Size of a file,
null
if the reference is a directory.
-
getId
Gets the ID of the file or directory.- Returns:
- ID of the file or directory.
-
getProperties
Gets the properties of the file or directory.- Returns:
- Properties of the file or directory.
-
getFileAttributes
Gets the NTFS attributes of the file or directory.- Returns:
- NTFS attributes of the file or directory.
-
getPermissionKey
Gets the permission key of the file or directory.- Returns:
- Permission key of the file or directory.
-