IpfsFilesCommand class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
chcid({String? path, int? cidVersion, String? hash})
→ Future<Map<String, dynamic>>
-
Change the CID version or hash function of the root node of a given path.
/api/v0/files/chcid
-
cp({required String src, required String dst, bool? parents})
→ Future<Map<String, dynamic>>
-
Add references to IPFS files and directories in MFS (or copy within MFS).
``
-
flush({String? path})
→ Future<Map<String, dynamic>>
-
Flush a given path's data to disk.
/api/v0/files/flush
-
ls({String? path, bool? long, bool? doNotSort})
→ Future<Map<String, dynamic>>
-
List directories in the local mutable namespace.
/api/v0/files/ls
-
mkdir({required String path, bool? parents, int? cidVersion, String? hash})
→ Future<Map<String, dynamic>>
-
Make directories.
/api/v0/files/mkdir
-
mv({required String src, required String dst})
→ Future<Map<String, dynamic>>
-
Move files.
/api/v0/files/mv
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
read({required String path, int? offset, int? count})
→ Future<Map<String, dynamic>>
-
Read a file in a given MFS.
/api/v0/files/read
-
rm({required String path, bool? recursive, bool? force})
→ Future<Map<String, dynamic>>
-
Remove a file.
``
-
stat({required String path, String? format, bool? hash, bool? size, bool? withLocal})
→ Future<Map<String, dynamic>>
-
Display file status.
/api/v0/files/stat
-
toString()
→ String
-
A string representation of this object.
inherited
-
write({required String path, required String data, int? offset, bool? create, bool? parents, bool? truncate, int? count, bool? rawLeaves, int? cidVersion, String? hash})
→ Future<Map<String, dynamic>>
-
Write to a mutable file in a given filesystem.
/api/v0/files/write