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

Side by Side Diff: chrome/common/extensions/docs/server2/file_system.py

Issue 10704252: Extensions Docs Server: Internal file system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed up Created 8 years, 5 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
OLDNEW
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 class FileSystem(object):
6 """A FileSystem interface that can read files and directories.
7 """
8 class StatInfo(object):
9 """The result of calling Stat on a FileSystem.
10 """
11 def __init__(self, version):
12 self.version = version
13
14 def Read(self, paths):
15 """Reads each file in paths and returns a dictionary mapping the path to the
16 contents. If a path in paths ends with a '/', it is assumed to be a
17 directory, and a list of files in the directory is mapped to the path.
18 """
19 raise NotImplementedError()
20
21 def Stat(self, path):
22 """Gets the version number of |path| if it is a directory, or the parent
23 directory if it is a file.
24 """
25 raise NotImplementedError()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/fetcher_cache.py ('k') | chrome/common/extensions/docs/server2/file_system_cache.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698