6.0k sao GitHub và vẫn tăng — astrada/google-drive-ocamlfuse là dự án OCaml mà TopGit đang theo dõi trên nền tảng. FUSE filesystem over Google Drive
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
For other installation options, please refer to the wiki.
How to build
Requirements
OCaml >= 4.08.0
dune >= 2.0.0
fuse3 >= 3.10.0
gapi-ocaml >= 0.4.9
sqlite3-ocaml >= 1.6.1
tiny_httpd >= 0.10
otoml >= 1.0.1
ounit >= 2.0.0
Configuration and installation
To build the executable, run
dune build @install
To install it, run (as root, if your user doesn't have enough privileges)
dune install
To uninstall anything that was previously installed, execute
dune uninstall
Usage
First, you must set up OAuth
2.0:
Activate the
Google Drive API.
Create an OAuth client ID.
Choose Desktop as Application type.
Set the Name to anything you like.
This way you will get a Client ID and Client secret that you can use to
access your Drive. To authorize google-drive-ocamlfuse, pass the client ID
and the client secret on the command line, e.g.:
This command will create the default application directory
(~/.gdfuse/default), containing the configuration file config (see the
wiki
page
for more details about configuration). And it will start a web browser to
obtain authorization to access your Google Drive. This way, you can modify the
default configuration before mounting the filesystem.
Then, you can choose a local directory to mount your Google Drive (e.g.: ~/GoogleDrive).
Create the mount point, if it doesn't exists:
mkdir ~/GoogleDrive
Then, you can mount the filesystem (append & to the command, if you want to
run it in background):
Using label to distinguish different accounts. The program will use the
directory ~/.gdfuse/[label] to host the configuration, the application
state, and the file cache. No file is shared among different accounts, so you
can have a different configuration for each one.
To unmount the filesystem, issue this command:
fusermount3 -u ~/GoogleDrive
On distributions that still provide the older helper name, use
fusermount -u ~/GoogleDrive instead.
Troubleshooting
This application is still under testing, so there are probably bugs to
discover and fix. To be extra sure, if you want, you can mount the filesystem
in read-only mode, modifying the configuration (see the
documentation),
to avoid any write attempt to the server. Anyway, the rm command will simply
trash your file, so you should always be able to rollback any changes. If you
have problems, you can turn on debug logging:
google-drive-ocamlfuse -debug mountpoint
The process is always kept in foreground; -debug enables debug and verbose
logging.
In ~/.gdfuse/default you can find curl.log that will track every request
to the Google Drive API, and gdfuse.log that will log FUSE operations and
cache management. If something goes wrong, you can try clearing the cache,
with this command:
google-drive-ocamlfuse -cc
If something still doesn't work, try starting from scratch removing everything
in ~/.gdfuse/default. In this case you will need to reauthorize the
application.
Note that in order to reduce latency, cached metadata remains valid for 60
seconds by default (configurable). After it expires, the next normal resource
operation checks the server for changes. So, if you make a change to your
documents (server side), you won't see it immediately in the mounted filesystem.
Filesystem-capacity queries such as df use the latest in-memory quota snapshot
without contacting Drive; they may report stale values, or unlimited capacity
before the first snapshot is available.
Note also that Google Documents will be exported read-only.
Support
If you have questions, suggestions or want to report a problem, you may want
to open an issue
on github.
astrada/google-drive-ocamlfuse có những chủ đề gì?
GitHub topics của astrada/google-drive-ocamlfuse: "filesystem", "fuse", "google-drive", "ocaml". TopGit xếp repo vào nhóm mã nguồn mở.
astrada/google-drive-ocamlfuse có phải mã nguồn mở không?
Có — astrada/google-drive-ocamlfuse phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/astrada/google-drive-ocamlfuse.
astrada/google-drive-ocamlfuse có trang demo không?
Dự án có trang chủ ở https://astrada.github.io/google-drive-ocamlfuse/. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
astrada/google-drive-ocamlfuse còn đang phát triển không?
Commit gần nhất trên astrada/google-drive-ocamlfuse là 3 tháng trước (theo timestamp GitHub). Repo có 366 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
astrada/google-drive-ocamlfuse dùng license gì?
astrada/google-drive-ocamlfuse phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc thêm về astrada/google-drive-ocamlfuse ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/astrada/google-drive-ocamlfuse là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
google-drive-ocamlfuse có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về google-drive-ocamlfuse.