我正在使用Ubuntu 16.04。我试图使用grive2同步我的Google驱动器,其方式是只将特定文件夹视为Google中的根文件夹,即只有包含在指定Google文件夹中的文件和文件夹是同步的。
我知道-p参数,但由于某些原因,我无法进入正确的路径。有人能帮忙吗。
我试过以下命令。
grive -p ./my_directory -a
grive -p ./"my_directory" -a
grive -p "Id" -a #where ID is the id of the resource as per Google Drive API每个错误都会抛出相同的错误。
exception: /build/grive2-2Hxkkx/grive2-0.5.1/libgrive/src/util/File.cc(128): Throw in function void gr::File::Open(const boost::filesystem::path&, int, int)
Dynamic exception type: boost::exception_detail::clone_impl<gr::File::Error>
[gr::expt::BacktraceTag*] = #0 0x578d79 grive gr::Exception::Exception()
#1 0x580917 grive gr::File::Error::Error()
#2 0x57fd69 grive gr::File::Open(boost::filesystem::path const&, int, int)
#3 0x57fe82 grive gr::File::OpenForWrite(boost::filesystem::path const&, int)
#4 0x57fb89 grive gr::File::File(boost::filesystem::path const&, int)
#5 0x57f2cc grive gr::Config::Save()
#6 0x50b63d grive Main(int, char**)
#7 0x50c1e9 grive main
#8 0x7f885cad9830 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#9 0x50a4b9 grive _start
2, "No such file or directory"[boost::errinfo_file_name_*] = ./my_directory/.grive
[boost::errinfo_api_function_*] = open我不知道如何指定路径参数。
发布于 2018-02-03 05:16:11
我有点搞不懂你所说的“只有一个特定的文件夹被视为我在Google驱动器中的根文件夹,也就是说,只有包含在指定的Google文件夹中的文件和文件夹是同步的”。
你想:
( my_directory =你的google驱动器根,我读了你句子的第一部分
my_directory = google驱动器中名为my_directory的文件夹,我是如何阅读第二部分的。
这就是我实现b的方法(在我的例子中,my_directory在~/grive中):
cd $HOME/grive
grive -s my_directory我只需要第一次使用-a。
https://askubuntu.com/questions/996752
复制相似问题