Giter Site home page Giter Site logo

yandex-disk's Introduction

SYNOPSIS

Simple wrapper for Yandex::Disk

INSTALL

$ sparrow plg install yandex-disk

USAGE

Basic usage:

$ sparrow plg run yandex-disk --param token=$token --param action=$action

For example:

# List system folders:
$ sparrow plg run yandex-disk \
--param token=********************************************* 
--param action=disk-info 

# Create remote folder named Foo:
$ sparrow plg run yandex-disk \
--param token=********************************************* 
--param action=create-folder \
--param folder=Foo/Bar

# Upload local file /tmp/foo.txt to remote folder named Foo/Bar:
$ sparrow plg run yandex-disk \
--param token=********************************************* 
--param action=upload-file \
--param folder=Foo/Bar \
--param file=/tmp/foo.txt

# Download remote file Foo/Bar/foo.txt and save it as local file /path/to/local/file.txt:
$ sparrow plg run yandex-disk \
--param token=********************************************* 
--param action=upload-file \
--param remote-file=Foo/Bar/foo.txt \
--param file=/path/to/local/file.txt

# List files in remote folder Foo/Bar:
$ sparrow plg run yandex-disk \
--param token=********************************************* 
--param action=list-files \
--param folder=Foo/Bar

# List files in remote folder /:
$ sparrow plg run yandex-disk \
--param token=********************************************* 
--param action=list-files \
--param folder=/

Parameters

action

Should be one of the list:

  • create-folder
  • disk-info
  • download-file
  • upload-file

token

Should be oauth token

Author

Alexey Melezhik

See also

Yandex::Disk

yandex-disk's People

Contributors

melezhik avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.