@@ -14,13 +14,13 @@ class LocalFileSystem extends FileSystem {
14
14
15
15
@override
16
16
Directory directory (dynamic path) =>
17
- new _LocalDirectory (this , shim. newDirectory (getPath (path)));
17
+ new _LocalDirectory (this , new io. Directory (getPath (path)));
18
18
19
19
@override
20
- File file (dynamic path) => new _LocalFile (this , shim. newFile (getPath (path)));
20
+ File file (dynamic path) => new _LocalFile (this , new io. File (getPath (path)));
21
21
22
22
@override
23
- Link link (dynamic path) => new _LocalLink (this , shim. newLink (getPath (path)));
23
+ Link link (dynamic path) => new _LocalLink (this , new io. Link (getPath (path)));
24
24
25
25
@override
26
26
p.Context get path => new p.Context ();
@@ -30,36 +30,36 @@ class LocalFileSystem extends FileSystem {
30
30
/// platform-dependent, and may be set by an environment variable.
31
31
@override
32
32
Directory get systemTempDirectory =>
33
- new _LocalDirectory (this , shim. systemTemp () );
33
+ new _LocalDirectory (this , io. Directory . systemTemp);
34
34
35
35
@override
36
- Directory get currentDirectory => directory (shim.currentDirectory .path);
36
+ Directory get currentDirectory => directory (io. Directory .current .path);
37
37
38
38
@override
39
- set currentDirectory (dynamic path) => shim.currentDirectory = path;
39
+ set currentDirectory (dynamic path) => io. Directory .current = path;
40
40
41
41
@override
42
- Future <io.FileStat > stat (String path) => shim .stat (path);
42
+ Future <io.FileStat > stat (String path) => io. FileStat .stat (path);
43
43
44
44
@override
45
- io.FileStat statSync (String path) => shim .statSync (path);
45
+ io.FileStat statSync (String path) => io. FileStat .statSync (path);
46
46
47
47
@override
48
48
Future <bool > identical (String path1, String path2) =>
49
- shim .identical (path1, path2);
49
+ io. FileSystemEntity .identical (path1, path2);
50
50
51
51
@override
52
52
bool identicalSync (String path1, String path2) =>
53
- shim .identicalSync (path1, path2);
53
+ io. FileSystemEntity .identicalSync (path1, path2);
54
54
55
55
@override
56
- bool get isWatchSupported => shim .isWatchSupported;
56
+ bool get isWatchSupported => io. FileSystemEntity .isWatchSupported;
57
57
58
58
@override
59
59
Future <io.FileSystemEntityType > type (String path, {bool followLinks: true }) =>
60
- shim. type (path, followLinks);
60
+ io. FileSystemEntity . type (path, followLinks : followLinks);
61
61
62
62
@override
63
63
io.FileSystemEntityType typeSync (String path, {bool followLinks: true }) =>
64
- shim. typeSync (path, followLinks);
64
+ io. FileSystemEntity . typeSync (path, followLinks : followLinks);
65
65
}
0 commit comments