| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 #include "nacl_io/googledrivefs/googledrivefs.h" |
| 6 |
| 7 #include "nacl_io/filesystem.h" |
| 8 #include "nacl_io/node.h" |
| 9 #include "nacl_io/path.h" |
| 10 |
| 11 namespace nacl_io { |
| 12 |
| 13 GoogleDriveFs::GoogleDriveFs() {} |
| 14 |
| 15 Error GoogleDriveFs::Init(const FsInitArgs& args) { |
| 16 // TODO: support init |
| 17 LOG_ERROR("init not supported."); |
| 18 return EPERM; |
| 19 } |
| 20 |
| 21 Error GoogleDriveFs::OpenWithMode(const Path& path, |
| 22 int open_flags, |
| 23 mode_t mode, |
| 24 ScopedNode* out_node) { |
| 25 // TODO: support openwithmode |
| 26 LOG_ERROR("openwithmode not supported."); |
| 27 return EPERM; |
| 28 } |
| 29 |
| 30 Error GoogleDriveFs::Mkdir(const Path& path, int permissions) { |
| 31 // TODO: support mkdir |
| 32 LOG_ERROR("mkdir not supported."); |
| 33 return EPERM; |
| 34 } |
| 35 |
| 36 Error GoogleDriveFs::Rmdir(const Path& path) { |
| 37 // TODO: support rmdir |
| 38 LOG_ERROR("rmdir not supported."); |
| 39 return EPERM; |
| 40 } |
| 41 |
| 42 Error GoogleDriveFs::Rename(const Path& path, const Path& newPath) { |
| 43 // TODO: support rename |
| 44 LOG_ERROR("rename not supported."); |
| 45 return EPERM; |
| 46 } |
| 47 |
| 48 Error GoogleDriveFs::Unlink(const Path& path) { |
| 49 // TODO: support unlink |
| 50 LOG_ERROR("unlink not supported."); |
| 51 return EPERM; |
| 52 } |
| 53 |
| 54 Error GoogleDriveFs::Remove(const Path& path) { |
| 55 // TODO: support remove |
| 56 LOG_ERROR("remove not supported."); |
| 57 return EPERM; |
| 58 } |
| 59 |
| 60 } // namespace nacl_io |
| OLD | NEW |