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_deprecated'); |
8 #import('file_system.dart'); | 8 #import('file_system.dart'); |
9 | 9 |
10 /** | 10 /** |
11 * [FileSystem] implementation using XHRs for reading files and an in memory | 11 * [FileSystem] implementation using XHRs for reading files and an in memory |
12 * cache for writing them. | 12 * cache for writing them. |
13 */ | 13 */ |
14 class DomFileSystem implements FileSystem { | 14 class DomFileSystem implements FileSystem { |
15 Map<String, String> _fileCache; | 15 Map<String, String> _fileCache; |
16 String _path; | 16 String _path; |
17 | 17 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void createDirectory(String path, [bool recursive = false]) { | 72 void createDirectory(String path, [bool recursive = false]) { |
73 // TODO(rnystrom): Implement. | 73 // TODO(rnystrom): Implement. |
74 throw 'createDirectory() is not implemented by DomFileSystem yet.'; | 74 throw 'createDirectory() is not implemented by DomFileSystem yet.'; |
75 } | 75 } |
76 | 76 |
77 void removeDirectory(String path, [bool recursive = false]) { | 77 void removeDirectory(String path, [bool recursive = false]) { |
78 // TODO(rnystrom): Implement. | 78 // TODO(rnystrom): Implement. |
79 throw 'removeDirectory() is not implemented by DomFileSystem yet.'; | 79 throw 'removeDirectory() is not implemented by DomFileSystem yet.'; |
80 } | 80 } |
81 } | 81 } |
OLD | NEW |