A FileStat object represents the result of calling the POSIX stat() function on a file system object. It is an immutable object, representing the snapshotted values returned by the stat() call.
Static Methods
-
stat(
String path) → Future<FileStat> -
Asynchronously calls the operating system's stat() function on
path
. Returns a Future which completes with a FileStat object containing the data returned by stat(). If the call fails, completes the future with a FileStat object with .type set to FileSystemEntityType.NOT_FOUND and the other fields invalid. -
statSync(
String path) → FileStat -
Calls the operating system's stat() function on
path
. Returns a FileStat object containing the data returned by stat(). If the call fails, returns a FileStat object with .type set to FileSystemEntityType.NOT_FOUND and the other fields invalid.
Properties
- accessed → DateTime
-
read-only
- changed → DateTime
-
read-only
- hashCode → int
-
Get a hash code for this object.…
read-only, inherited - mode → int
-
read-only
- modified → DateTime
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - size → int
-
read-only
- type → FileSystemEntityType
-
read-only
Operators
-
operator ==(
other) → bool -
The equality operator.…
inherited
Methods
-
modeString(
) → String -
Returns the mode value as a human-readable string, in the format "rwxrwxrwx", reflecting the user, group, and world permissions to read, write, and execute the file system object, with "-" replacing the letter for missing permissions. Extra permission bits may be represented by prepending "(suid)", "(guid)", and/or "(sticky)" to the mode string.
-
noSuchMethod(
Invocation invocation) → dynamic -
noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.…
inherited -
toString(
) → String -
Returns a string representation of this object.