Link class

Link objects are references to filesystem links.

Implemented types

Constructors

Link.fromRawPath(Uint8List rawPath)
factory
Link.fromUri(Uri uri)
Creates a Link object.
factory

Properties

absolute Link
A FileSystemEntity whose path is the absolute path of path.
no setteroverride
basename String
Gets the part of this entity's path after the last separator.
no setterinherited
dirname String
Gets the part of this entity's path before the last separator.
no setterinherited
fileSystem → FileSystem
Returns the file system responsible for this entity.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isAbsolute bool
Whether this object's path is absolute.
no setterinherited
parent → Directory
The parent directory of this entity.
no setterinherited
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri
A Uri representing the file system entity's location.
no setterinherited

Methods

create(String target, {bool recursive = false}) Future<Link>
Creates a symbolic link in the file system.
createSync(String target, {bool recursive = false}) → void
Creates a symbolic link in the file system.
override
delete({bool recursive = false}) Future<Link>
Deletes this FileSystemEntity.
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 nonexistent method or property is accessed.
inherited
rename(String newPath) Future<Link>
Renames this file system entity.
override
renameSync(String newPath) Link
Synchronously renames this file system entity.
override
Resolves the path of a file system object relative to the current working directory.
inherited
resolveSymbolicLinksSync() String
Resolves the path of a file system object relative to the current working directory.
inherited
stat() Future<FileStat>
Calls the operating system's stat() function on path.
inherited
statSync() FileStat
Synchronously calls the operating system's stat() function on path.
inherited
target() Future<String>
Gets the target of the link.
override
targetSync() String
Synchronously gets the target of the link.
override
toString() String
A string representation of this object.
inherited
update(String target) Future<Link>
Updates an existing link.
updateSync(String target) → void
Synchronously updates an existing link.
override
watch({int events = io.FileSystemEvent.all, bool recursive = false}) Stream<FileSystemEvent>
Start watching the FileSystemEntity for changes.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited