Last active
January 18, 2018 22:21
-
-
Save kyorohiro/c0ba7ed0ef75d565fa03f7142e78f9f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class File { | |
Future<int> writeAsBytes(List<int> buffer, int offset); | |
Future<List<int>> readAsBytes(int offset, int length); | |
Future<int> getLength(); | |
Future<int> truncate(int fileSize); | |
Future<File> close(); | |
} | |
abstract class FileSystem { | |
Future<FileSystem> checkPermission(); | |
Future<FileSystem> mkdir(String path); | |
Future<FileSystem> rm(String path,{bool recursive: false}); | |
Stream<String> ls(String path); | |
Future<File> open(String path); | |
Future<String> getHomeDirectory(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment