- java.lang.Object
-
- org.eclipse.jgit.util.FS.Attributes
-
-
Field Summary
Fields Modifier and Type Field Description protected longlengthfile length
-
Constructor Summary
Constructors Constructor Description Attributes(File path, FS fs)Constructor when there are issues with reading.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetCreationTime()FilegetFile()InstantgetLastModifiedInstant()longgetLastModifiedTime()Deprecated.use getLastModifiedInstant insteadlonggetLength()StringgetName()booleanisDirectory()booleanisExecutable()booleanisRegularFile()booleanisSymbolicLink()
-
-
-
Method Detail
-
isDirectory
public boolean isDirectory()
- Returns:
- true if this are the attributes of a directory
-
isExecutable
public boolean isExecutable()
- Returns:
- true if this are the attributes of an executable file
-
isSymbolicLink
public boolean isSymbolicLink()
- Returns:
- true if this are the attributes of a symbolic link
-
isRegularFile
public boolean isRegularFile()
- Returns:
- true if this are the attributes of a regular file
-
getCreationTime
public long getCreationTime()
- Returns:
- the time when the file was created
-
getLastModifiedTime
@Deprecated public long getLastModifiedTime()
Deprecated.use getLastModifiedInstant instead- Returns:
- the time (milliseconds since 1970-01-01) when this object was last modified
-
getLastModifiedInstant
public Instant getLastModifiedInstant()
- Returns:
- the time when this object was last modified
- Since:
- 5.1.9
-
getLength
public long getLength()
- Returns:
- length of this file object
-
getName
public String getName()
- Returns:
- the filename
-
getFile
public File getFile()
- Returns:
- the file the attributes apply to
-
-