Google Drive API client for Web Application.
A brief explanation is described in a documet for the class Gdfs.
- Class Gdfs as a client of the Google Drive file system.
- Class methods
- Instance methods
chdir(directory)changes the current working directory.
cwd()- returns the current working directory.
isDirectory(path)tests the path is a directory.
mkdir(path)creates a folder.
readdir(path, options)lists file names.
readFile(path)read the file contents.
rmdir(path)removes the directory.
stat(path)returns properties of Google Drive files.
unlink(path)removes the file (without moving to the trash-box).
writeFile(path, mimeType, data)writes data to the file.
- Class Gdfs.Path - as representation of path for the Google Drive files.
- Class Gdfs.Ui(alpha) - A class supporting to create UI.
To install, use npm for your project.
$ npm install --save gdrive-fs
USING WITH BUNDLER
If you are using some bundler, you can just import this module and use.
const Gdfs = require("gdrive-fs"); Gdfs.loadApi( . . .
USING WITHOUT BUNDLER
If you do not use any bundler, the following built files are available to include by SCRIPT tag.
<!DOCTYPE html> <html> <head> ... <script src="<path-to-gdrive-fs>/build/gdrive-fs.min.js"></script> </body>
$ npm run release
This module published under MIT LICENSE.