Spec-Zone.ru › Dart 2

dart:io

Link class

References to filesystem links.

Implemented types
  • FileSystemEntity

Constructors

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

Properties

absolute → Link
read-onlyoverride
A Link instance whose path is the absolute path to this.
hashCode → int
read-onlyinherited
The hash code for this object.
isAbsolute → bool
read-onlyinherited
Whether this object's path is absolute.
parent → Directory
read-onlyinherited
The parent directory of this entity.
path → String
read-onlyinherited
runtimeType → Type
read-onlyinherited
A representation of the runtime type of the object.
uri → Uri
read-onlyinherited
A Uri representing the file system entity's location.

Methods

create(String target, {bool recursive = false}) → Future<Link>
Creates a symbolic link in the file system.
createSync(String target, {bool recursive = false}) → void
Synchronously create the link. Calling createSync on an existing link will throw an exception.
delete({bool recursive = false}) → Future<FileSystemEntity>
inherited
Deletes this FileSystemEntity.
deleteSync({bool recursive = false}) → void
inherited
Synchronously deletes this FileSystemEntity.
exists() → Future<bool>
inherited
Checks whether the file system entity with this path exists.
existsSync() → bool
inherited
Synchronously checks whether the file system entity with this path exists.
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed.
rename(String newPath) → Future<Link>
override
Renames this link.
renameSync(String newPath) → Link
override
Synchronously renames this link.
resolveSymbolicLinks() → Future<String>
override
Resolves the path of a file system object relative to the current working directory.
resolveSymbolicLinksSync() → String
override
Resolves the path of a file system object relative to the current working directory.
stat() → Future<FileStat>
inherited
Calls the operating system's stat() function on path.
statSync() → FileStat
inherited
Synchronously calls the operating system's stat() function on path.
target() → Future<String>
Gets the target of the link.
targetSync() → String
Synchronously gets the target of the link.
toString() → String
inherited
A string representation of this object.
update(String target) → Future<Link>
Updates the link.
updateSync(String target) → void
Synchronously updates the link.
watch({int events = FileSystemEvent.all, bool recursive = false}) → Stream<FileSystemEvent>
inherited
Start watching the FileSystemEntity for changes.

Operators

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

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-io/Link-class.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API