Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: pkg/polymer/lib/src/file_system.dart

Issue 23224003: move polymer.dart into dart svn (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add --deploy to todomvc sample Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/polymer/lib/src/emitters.dart ('k') | pkg/polymer/lib/src/file_system/console.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
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.
4
5 /** Abstraction for file systems and utility functions to manipulate paths. */
6 library file_system;
7
8 import 'dart:async';
9
10 /**
11 * Abstraction around file system access to work in a variety of different
12 * environments.
13 */
14 abstract class FileSystem {
15 /**
16 * Apply all pending writes. Until this method is called, writeString is not
17 * guaranteed to have any observable impact.
18 */
19 Future flush();
20
21 /**
22 * Reads bytes if possible, but falls back to text if running in a browser.
23 * Return type is either [Future<List<int>>] or [Future<String>].
24 */
25 Future readTextOrBytes(String path);
26
27 /* Like [readTextOrBytes], but decodes bytes as UTF-8. Used for Dart code. */
28 Future<String> readText(String path);
29
30 /**
31 * Writes [text] to file at [path]. Call flush to insure that changes are
32 * visible.
33 */
34 void writeString(String path, String text);
35 }
OLDNEW
« no previous file with comments | « pkg/polymer/lib/src/emitters.dart ('k') | pkg/polymer/lib/src/file_system/console.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698