public final class AzureBasicFileAttributes extends Object implements BasicFileAttributes
The properties available on this type are a strict subset of AzureBlobFileAttributes
, and the two types have
the same network behavior. Therefore, while this type is offered for compliance with the NIO spec,
AzureBlobFileAttributes
is generally preferred.
Some attributes are not supported. Refer to the javadocs on each method for more information.
Modifier and Type | Method and Description |
---|---|
FileTime |
creationTime()
Returns the creation time.
|
Object |
fileKey()
Returns the url of the resource.
|
boolean |
isDirectory()
Tells whether the file is a directory.
|
boolean |
isOther()
Tells whether the file is something other than a regular file, directory, or symbolic link.
|
boolean |
isRegularFile()
Tells whether the file is a regular file with opaque content.
|
boolean |
isSymbolicLink()
Tells whether the file is a symbolic link.
|
FileTime |
lastAccessTime()
Returns the time of last modification.
|
FileTime |
lastModifiedTime()
Returns the time of last modification.
|
long |
size()
Returns the size of the file (in bytes).
|
public FileTime lastModifiedTime()
lastModifiedTime
in interface BasicFileAttributes
public FileTime lastAccessTime()
Last access time is not supported by the blob service. In this case, it is typical for implementations to return
the AzureBasicFileAttributes.lastModifiedTime()
.
lastAccessTime
in interface BasicFileAttributes
public FileTime creationTime()
creationTime
in interface BasicFileAttributes
public boolean isRegularFile()
isRegularFile
in interface BasicFileAttributes
public boolean isDirectory()
Will only return true if the directory is a concrete directory. See
AzureFileSystemProvider.createDirectory(Path, FileAttribute[])
for more information on virtual and
concrete directories.
isDirectory
in interface BasicFileAttributes
public boolean isSymbolicLink()
isSymbolicLink
in interface BasicFileAttributes
public boolean isOther()
isOther
in interface BasicFileAttributes
public long size()
size
in interface BasicFileAttributes
public Object fileKey()
fileKey
in interface BasicFileAttributes
Copyright © 2021 Microsoft Corporation. All rights reserved.