Code Monkey home page Code Monkey logo

fff's Introduction

File transfer utility

API:

read( pkg|smartpath, cb ) if file is remote: executes copy to local tmp, fs.read on the tmp file, deletes the tmp file

returns cb(err, data);

write( data, pkg|smartpath [, opts ] , cb ) if file is remote writes to tmp file, copy tmp to remote deletes tmp file

returns cb(err);

delete( pkg|smartpath, [, opts], cb ) if file is remote, spawns ssh rm

returns cb(err);

move( from_pkg|from_path, to_pkg|to_path, [, opts ], cb ) convenience method copy, delete the from

returns cb(err);

copy( from_pkg|from_path, to_pkg|to_path, [, opts ], cb )

from to


local local

( local to remote ) local ssh

local pem

local ftp

( remote to local ) ssh local pem local ftp local

( remote to remote ) ssh ssh -> requries scp -3 (flag) ssh pem -> requries copy to local tmp first, then transfer back up ssh ftp ->

pem ssh -> requries copy to local tmp first, then transfer back up pem pem -> requries copy to local tmp first, then transfer back up pem ftp

ftp ssh ftp pem ftp ftp

fff's People

Watchers

Ray Ie avatar James Cloos 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.