Link class - dart:io library (original) (raw)
References to filesystem links.
Implemented types
Constructors
Creates a Link object.
factory
Link.fromRawPath(Uint8List rawPath)
factory
Link.fromUri(Uri uri)
Creates a Link object.
factory
Properties
A Link instance whose path is the absolute path to this Link.
no setteroverride
The hash code for this object.
no setterinherited
Whether this object's path is absolute.
no setterinherited
The parent directory of this entity.
no setterinherited
no setterinherited
A representation of the runtime type of the object.
no setterinherited
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.
delete({bool recursive = false})→ Future<FileSystemEntity>
Deletes this Link.
override
deleteSync({bool recursive = false})→ void
Synchronously deletes this Link.
override
Checks whether the file system entity with this path exists.
inherited
existsSync()→ bool
Synchronously checks whether the file system entity with this path exists.
inherited
noSuchMethod(Invocation invocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rename(String newPath)→ Future<Link>
Renames this link.
override
renameSync(String newPath)→ Link
Synchronously renames this link.
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
Calls the operating system's stat()
function on path.
inherited
Synchronously calls the operating system's stat()
function on path.
inherited
Gets the target of the link.
targetSync()→ String
Synchronously gets the target of the link.
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.
watch({int events = FileSystemEvent.all, bool recursive = false})→ Stream<FileSystemEvent>
Start watching the FileSystemEntity for changes.
inherited
Operators
operator ==(Object other)→ bool
The equality operator.
inherited