A C++ library providing access to files located in various cloud services
licensed under GNU LGPLv2.1. It is focused on the basic operations on those
services.
GoogleDriveOneDriveDropboxbox.comYandexDiskWebDAVmega.nzAmazonS3pCloudhubiC4sharedGoogle Photos(partial)
list directorydownload fileupload fileget thumbnaildelete filecreate directorymove filerename filefetch direct, preauthenticated url to file
jsoncpptinyxml2libmicrohttpd(optional)cURL(withOpenSSL/c-ares, optional)libcryptopp(optional, required forAmazonS3)mega(optional, required formega.nz)
The generic way to build and install it is:
mkdir build && cd build && cmake .. && make && sudo make install
Optional dependency notes:
-
libcryptopp:when not found,
ICryptointerface needs to be implemented -
libcurlwhen not found,
IHttpinterface needs to be implemented -
libmicrohttpdwhen not found,
IHttpServerinterface needs to be implemented -
boost-filesystemwhen found,
LocalDriveprovider representing local directory will be included -
megawhen not found,
megacloud provider will not be included
In bin/fuse there is implemented a user space file system using fuse
(https://github.com/libfuse/libfuse) library. It will be build when fuse is
found. The file system is implemented using libfuse's low level api; however
high level api implementation is also provided. The file system supports
moving, renaming, creating directories, reading and writing new files. Writing
over already present files in cloud provider is not supported. The file system
uses asynchronous I/O to its full potency. It doesn't cache files anywhere by
itself which implies no local storage overhead. Most cloud providers are fast
enough when it comes to watching videos; with mega.nz being the fastest and
Google Drive being the slowest.
It is possible to run cloudstorage-fuse under Windows using Dokan
(https://github.com/dokan-dev/dokany).
To add cloud providers to file system, first the cloud providers need to be added. This can be done by calling:
cloudstorage-fuse --add=provider_label
After cloud providers are added, the file system can be mount using:
cloudstorage-fuse mountpoint
In bin/cloudbrowser there is a program which provides easy graphics user
interface for all the features implemented in libcloudstorage. It will be
built when its dependencies are found.
Cloud Browser dependencies:
-
Qt5Core,Qt5Gui,Qt5Quick -
kirigami(https://github.com/KDE/kirigami) -
Qt5WebViewwhen found, Cloud Browser will use it to present the authorization scheme
-
ffmpegwhen found, Cloud Browser will generate fallback thumbnails if cloud provider doesn't provide any
-
mpvwhen found, Cloud Browser will use mpv-based media player
Screenshot:
- https://play.google.com/store/apps/details?id=io.storage.cloudbrowser
- https://www.microsoft.com/en-us/p/cloud-storage-browser/9nbkjrh757k7
Implement following cloud providers:
Apple ICloudAsus WebStorageBaidu CloudCloudMeFileDropperFileserveHandy BackupIBM ConnectionsJumpshareMagicVortexMediaFirePogoplugSpiderOakSugarSyncTencent WeiyunTitanFileTresoritXXL Box
Implement bindings to various languages, notably script languages:
Obj-CpythonrubyJavaScript/nodeJava
Integrate in various desktops
KIOslavegvfsimplementation
Implement chunked uploads.