PhysicalFileInfo class
Represents a file on a physical filesystem
- Implemented types
Constructors
- PhysicalFileInfo(File _info)
- Initializes an instance of PhysicalFileInfo that wraps an instance of File.
Properties
- exists → bool
-
True if resource exists in the underlying storage system.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDirectory → bool
-
Always false.
no setteroverride
- lastModified → DateTime
-
When the file was last modified
no setteroverride
- length → int
-
The length of the file in bytes, or -1 for a directory
or non-existing files.
no setteroverride
- name → String
-
The name of the file or directory, not including any path.
no setteroverride
- physicalPath → String?
-
The path to the file, including the file name. Return
null if the file is not directly accessible.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createReadStream(
) → Stream -
Return file contents as readonly stream. Caller should dispose stream
when complete.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited