Link class abstract
Link objects are references to filesystem links.
- Inheritance
-
- Object
- FileSystemEntity
- Link
Properties
- absolute → Link
-
Returns a Link instance whose path is the absolute path to
this
.no setter - fs → FileSystem
-
fs_shim specific
holds a reference to the file system
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAbsolute → bool
-
Returns a bool indicating whether this object's path is absolute.
no setterinherited
- parent → Directory
-
The directory containing
this
. Ifthis
is a root directory, returnsthis
.no setterinherited - path → String
-
Get the path of the file.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
create(
String target, {bool recursive = false}) → Future< Link> -
Creates a symbolic link. Returns a
`Future<Link>`
that completes with the link when it has been created. If the link exists, the future will complete with an error. -
delete(
{bool recursive = false}) → Future< FileSystemEntity> -
Deletes this FileSystemEntity.
inherited
-
exists(
) → Future< bool> -
Checks whether the file system entity with this path exists. Returns
a
`Future<bool>`
that completes with the result.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rename(
String newPath) → Future< Link> -
Renames this file system entity. Returns a
Future<FileSystemEntity>
that completes with a FileSystemEntity instance for the renamed file system entity.override -
stat(
) → Future< FileStat> -
Calls the operating system's stat() function on the path of this
FileSystemEntity. Identical to
FileStat.stat(this.path)
.inherited -
target(
) → Future< String> - Gets the target of the link. Returns a future that completes with the path to the target.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited