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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
6 module mojo.files; | 6 module mojo.files; |
7 | 7 |
8 // Error codes used by the file manager. | 8 // Error codes used by the file manager. |
9 // TODO(vtl): Add more (to, e.g., cover all of errno). | 9 // TODO(vtl): Add more (to, e.g., cover all of errno). |
10 enum Error { | 10 enum Error { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 }; | 93 }; |
94 | 94 |
95 // Deletion flags: | 95 // Deletion flags: |
96 // Only delete if the path refers to a file/non-directory (by default, will | 96 // Only delete if the path refers to a file/non-directory (by default, will |
97 // delete files and directories). | 97 // delete files and directories). |
98 const uint32 kDeleteFlagFileOnly = 0x1; | 98 const uint32 kDeleteFlagFileOnly = 0x1; |
99 // Only delete if the path refers to a directory. | 99 // Only delete if the path refers to a directory. |
100 const uint32 kDeleteFlagDirectoryOnly = 0x2; | 100 const uint32 kDeleteFlagDirectoryOnly = 0x2; |
101 // Recursively delete (neither of the two flags above may be specified). | 101 // Recursively delete (neither of the two flags above may be specified). |
102 const uint32 kDeleteFlagRecursive = 0x4; | 102 const uint32 kDeleteFlagRecursive = 0x4; |
OLD | NEW |