feat(web_file_system): resolve concurrency and stream sizing issues, add README, and achieve 100% test coverage
This commit is contained in:
@@ -228,6 +228,18 @@ class WebFileSystem extends FileSystem {
|
||||
@override
|
||||
bool identicalSync(String path1, String path2) =>
|
||||
throw UnsupportedError('Sync not supported');
|
||||
|
||||
Future<String> resolveSymbolicLinks(String pathStr) async {
|
||||
final inode = await resolvepath(pathStr, followLinks: true);
|
||||
final List<String> segments = [];
|
||||
Inode current = inode;
|
||||
while (current.id != IdbInodeService.rootId) {
|
||||
segments.add(current.name);
|
||||
current = await _idb.getInode(current.parentId);
|
||||
}
|
||||
if (segments.isEmpty) return '/';
|
||||
return '/' + segments.reversed.join('/');
|
||||
}
|
||||
}
|
||||
|
||||
class FileStatImpl implements FileStat {
|
||||
|
||||
Reference in New Issue
Block a user