| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module mojo.files; | 5 module mojo.files; |
| 6 | 6 |
| 7 import "services/files/file.mojom"; | 7 import "files/public/interfaces/file.mojom"; |
| 8 import "services/files/types.mojom"; | 8 import "files/public/interfaces/types.mojom"; |
| 9 | 9 |
| 10 // This interface provides access to a directory in a "file system", providing | 10 // This interface provides access to a directory in a "file system", providing |
| 11 // operations such as creating/opening/removing/renaming files/directories | 11 // operations such as creating/opening/removing/renaming files/directories |
| 12 // within it. Note that all relative |path| arguments are relative to "this" | 12 // within it. Note that all relative |path| arguments are relative to "this" |
| 13 // directory (i.e., "this" directory functions as the current working directory | 13 // directory (i.e., "this" directory functions as the current working directory |
| 14 // for the various operations). | 14 // for the various operations). |
| 15 // TODO(vtl): Paths may be relative; should they allowed to be absolute? | 15 // TODO(vtl): Paths may be relative; should they allowed to be absolute? |
| 16 // (Currently not.) | 16 // (Currently not.) |
| 17 interface Directory { | 17 interface Directory { |
| 18 // Operations about "this" |Directory|: | 18 // Operations about "this" |Directory|: |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // TODO(vtl): directory "streaming"? | 54 // TODO(vtl): directory "streaming"? |
| 55 // TODO(vtl): "make root" (i.e., prevent cd-ing, etc., to parent); note that | 55 // TODO(vtl): "make root" (i.e., prevent cd-ing, etc., to parent); note that |
| 56 // this would require a much more complicated implementation (e.g., it needs | 56 // this would require a much more complicated implementation (e.g., it needs |
| 57 // to be "inherited" by OpenDirectory(), and the enforcement needs to be valid | 57 // to be "inherited" by OpenDirectory(), and the enforcement needs to be valid |
| 58 // even if the opened directory is subsequently moved -- e.g., closer to the | 58 // even if the opened directory is subsequently moved -- e.g., closer to the |
| 59 // "root") | 59 // "root") |
| 60 // TODO(vtl): Add a "watch"? | 60 // TODO(vtl): Add a "watch"? |
| 61 // TODO(vtl): Should we have a "close" method? | 61 // TODO(vtl): Should we have a "close" method? |
| 62 // TODO(vtl): Add Dup() and Reopen() (like File)? | 62 // TODO(vtl): Add Dup() and Reopen() (like File)? |
| 63 }; | 63 }; |
| OLD | NEW |