Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:io
  3. Link class
Link
description

Link classabstractinterface

References to filesystem links.

Implemented types

Constructors

Link(Stringpath)
Creates a Link object.
factory
Link.fromRawPath(Uint8ListrawPath)
factory
Link.fromUri(Uriuri)
Creates aLink object.
factory

Properties

absoluteLink
ALink instance whose path is the absolute path to thisLink.
no setteroverride
hashCodeint
The hash code for this object.
no setterinherited
isAbsolutebool
Whether this object's path is absolute.
no setterinherited
parentDirectory
The parent directory of this entity.
no setterinherited
pathString
no setterinherited
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited
uriUri
AUri representing the file system entity's location.
no setterinherited

Methods

create(Stringtarget, {boolrecursive =false})Future<Link>
Creates a symbolic link in the file system.
createSync(Stringtarget, {boolrecursive =false})→ void
Creates a symbolic link in the file system.
delete({boolrecursive =false})Future<FileSystemEntity>
Deletes thisLink.
override
deleteSync({boolrecursive =false})→ void
Synchronously deletes thisLink.
override
exists()Future<bool>
Checks whether the file system entity with this path exists.
inherited
existsSync()bool
Synchronously checks whether the file system entity with this pathexists.
inherited
noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rename(StringnewPath)Future<Link>
Renames this link.
override
renameSync(StringnewPath)Link
Synchronously renames this link.
override
resolveSymbolicLinks()Future<String>
Resolves the path of a file system object relative to thecurrent working directory.
override
resolveSymbolicLinksSync()String
Resolves the path of a file system object relative to thecurrent working directory.
override
stat()Future<FileStat>
Calls the operating system'sstat() function onpath.
inherited
statSync()FileStat
Synchronously calls the operating system'sstat() function onpath.
inherited
target()Future<String>
Gets the target of the link.
targetSync()String
Synchronously gets the target of the link.
toString()String
A string representation of this object.
inherited
update(Stringtarget)Future<Link>
Updates an existing link.
updateSync(Stringtarget)→ void
Synchronously updates an existing link.
watch({intevents =FileSystemEvent.all,boolrecursive =false})Stream<FileSystemEvent>
Start watching theFileSystemEntity for changes.
inherited

Operators

operator ==(Objectother)bool
The equality operator.
inherited
  1. Dart
  2. dart:io
  3. Link class
dart:io library

[8]ページ先頭

©2009-2025 Movatter.jp