| OLD | NEW |
| 1 /* Copyright (c) 2012 The hromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The hromium 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 #include "nacl_io/mount_mem.h" | 5 #include "nacl_io/mount_mem.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "nacl_io/mount.h" | 12 #include "nacl_io/mount.h" |
| 13 #include "nacl_io/mount_node.h" | 13 #include "nacl_io/mount_node.h" |
| 14 #include "nacl_io/mount_node_dir.h" | 14 #include "nacl_io/mount_node_dir.h" |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 if (file_only && child->IsaDir()) | 215 if (file_only && child->IsaDir()) |
| 216 return EISDIR; | 216 return EISDIR; |
| 217 | 217 |
| 218 if (remove_dir && child->ChildCount() > 0) | 218 if (remove_dir && child->ChildCount() > 0) |
| 219 return ENOTEMPTY; | 219 return ENOTEMPTY; |
| 220 | 220 |
| 221 return parent->RemoveChild(path.Basename()); | 221 return parent->RemoveChild(path.Basename()); |
| 222 } | 222 } |
| 223 | 223 |
| OLD | NEW |