ForwardingFileSystemEntity<T extends FileSystemEntity, D extends FileSystemEntity> class
Null safety
A file system entity that forwards all methods and properties to a delegate.
- Implemented types
- Implementers
Constructors
Properties
- absolute → T
-
A FileSystemEntity whose path is the absolute path of path.
read-onlyoverride
- basename → String
-
Gets the part of this entity's path after the last separator.
read-onlyoverride
- delegate → D
-
The entity to which this entity will forward all methods and properties.
protected">@protectedread-only
- dirname → String
-
Gets the part of this entity's path before the last separator.
read-onlyoverride
- fileSystem → FileSystem
-
Returns the file system responsible for this entity.
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- isAbsolute → bool
-
Whether this object's path is absolute.
read-onlyoverride
- parent → Directory
-
The parent directory of this entity.
read-onlyoverride
- path → String
-
read-onlyoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- uri → Uri
-
A Uri representing the file system entity's location.
read-onlyoverride
Methods
-
delete(
{bool recursive = false}) → Future< T> -
Deletes this
FileSystemEntity
.override -
deleteSync(
{bool recursive = false}) → void -
Synchronously deletes this FileSystemEntity.
override
-
exists(
) → Future< bool> -
Checks whether the file system entity with this path exists.
override
-
existsSync(
) → bool -
Synchronously checks whether the file system entity with this path
exists.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
rename(
String newPath) → Future< T> -
Renames this file system entity.
override
-
renameSync(
String newPath) → T -
Synchronously renames this file system entity.
override
-
resolveSymbolicLinks(
) → Future< String> -
Resolves the path of a file system object relative to the
current working directory.
override
-
resolveSymbolicLinksSync(
) → String -
Resolves the path of a file system object relative to the
current working directory.
override
-
stat(
) → Future< FileStat> -
Calls the operating system's
stat()
function on path.override -
statSync(
) → FileStat -
Synchronously calls the operating system's
stat()
function on path.override -
toString(
) → String -
A string representation of this object.
inherited
-
watch(
{int events = FileSystemEvent.all, bool recursive = false}) → Stream< FileSystemEvent> -
Start watching the FileSystemEntity for changes.
override
-
wrap(
D delegate) → T -
Creates a new entity with the same file system and same type as this
entity but backed by the specified delegate.
protected">@protected
-
wrapDirectory(
Directory delegate) → Directory -
Creates a new directory with the same file system as this entity and
backed by the specified delegate.
protected">@protected
-
wrapFile(
File delegate) → File -
Creates a new file with the same file system as this entity and
backed by the specified delegate.
protected">@protected
-
wrapLink(
Link delegate) → Link -
Creates a new link with the same file system as this entity and
backed by the specified delegate.
protected">@protected
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited