OLD | NEW |
---|---|
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #library('file_system_dom'); | 5 #library('file_system_dom'); |
6 | 6 |
7 #import('dart:dom'); | 7 #import('dart:dom'); |
8 #import('file_system.dart'); | 8 #import('file_system.dart'); |
9 | 9 |
10 /** | 10 /** |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 return result; | 61 return result; |
62 } | 62 } |
63 | 63 |
64 void writeString(String outfile, String text) { | 64 void writeString(String outfile, String text) { |
65 outfile = absPath(outfile); | 65 outfile = absPath(outfile); |
66 _fileCache[outfile] = text; | 66 _fileCache[outfile] = text; |
67 } | 67 } |
68 | 68 |
69 // Note: this is not a perf nightmare only because of caching. | 69 // Note: this is not a perf nightmare only because of caching. |
70 bool fileExists(String filename) => readAll(filename) != null; | 70 bool fileExists(String filename) => readAll(filename) != null; |
71 | |
72 void createDirectory(String path, [bool recursive = false]) { | |
73 throw 'createDirectory() is not implemented by DomFileSystem yet.'; | |
Jacob
2011/11/16 19:59:30
perhaps add a TODO for each of these methods?
Also
Bob Nystrom
2011/11/17 20:44:21
Done.
| |
74 } | |
75 | |
76 void removeDirectory(String path, [bool recursive = false]) { | |
77 throw 'removeDirectory() is not implemented by DomFileSystem yet.'; | |
78 } | |
71 } | 79 } |
OLD | NEW |