@@ -49,9 +49,9 @@ class _MemoryDirectory extends _MemoryFileSystemEntity implements Directory {
4949 @override
5050 Directory createTempSync ([String prefix]) {
5151 prefix = (prefix ?? '' ) + 'rand' ;
52- String fullPath = fileSystem._context .join (path, prefix);
53- String dirname = fileSystem._context .dirname (fullPath);
54- String basename = fileSystem._context .basename (fullPath);
52+ String fullPath = fileSystem.path .join (path, prefix);
53+ String dirname = fileSystem.path .dirname (fullPath);
54+ String basename = fileSystem.path .basename (fullPath);
5555 _DirectoryNode node = fileSystem._findNode (dirname);
5656 _checkExists (node, () => dirname);
5757 _checkIsDir (node, () => dirname);
@@ -62,7 +62,7 @@ class _MemoryDirectory extends _MemoryFileSystemEntity implements Directory {
6262 _DirectoryNode tempDir = new _DirectoryNode (node);
6363 node.children[name ()] = tempDir;
6464 return new _MemoryDirectory (
65- fileSystem, fileSystem._context .join (dirname, name ()));
65+ fileSystem, fileSystem.path .join (dirname, name ()));
6666 }
6767
6868 @override
@@ -113,7 +113,7 @@ class _MemoryDirectory extends _MemoryFileSystemEntity implements Directory {
113113 _PendingListTask task = tasks.removeLast ();
114114 task.dir.children.forEach ((String name, _Node child) {
115115 Set <_LinkNode > breadcrumbs = new Set <_LinkNode >.from (task.breadcrumbs);
116- String childPath = fileSystem._context .join (task.path, name);
116+ String childPath = fileSystem.path .join (task.path, name);
117117 while (followLinks && _isLink (child) && breadcrumbs.add (child)) {
118118 _Node referent = (child as _LinkNode ).referentOrNull;
119119 if (referent != null ) {
0 commit comments