GithubHelp home page GithubHelp logo

Send directories? about cloudsend.sh HOT 11 CLOSED

tavinus avatar tavinus commented on June 21, 2024
Send directories?

from cloudsend.sh.

Comments (11)

tavinus avatar tavinus commented on June 21, 2024

Sending directories is currently not supported.

You would have to make a script that will iterate through the files and send each one on its call.

Also, cloudsend had no MakeDir call. CloudManager has makedir, but is not for sending files to public shares and also does not currently support sending folders.

from cloudsend.sh.

nthiery avatar nthiery commented on June 21, 2024

from cloudsend.sh.

tavinus avatar tavinus commented on June 21, 2024

Yep. You can tar/zip the folder and send it as well.

Apart from that we would need to send all files, one by one anyways, even if I would implement it here.

And there is no support to creating folders at the destination (all files would be sent to the shared folder root). I don't think I can do anything about that.

from cloudsend.sh.

tavinus avatar tavinus commented on June 21, 2024

Hi. I have released a new version (2.1.0) which can both send multiple files (using globs) and also send piped content (using - OR . as input file name).


Here are the release notes:

  • Adds stdin as input option (piped content)
    • uses either - or . as input file name
    • requires -r <filename>
  • Allows to use globbing at the input
    • can send multiple files by using globs
    • requires -g option
    • not compatible with -r <name> option (rename)
  • Adds new checks and parsing
  • Cleaned up unused code
  • Updated readme and --help

There is more info on the main Readme file.

from cloudsend.sh.

tavinus avatar tavinus commented on June 21, 2024

I have updated the readme with an example on how to send an entire folder (and/or subfolders) using find + cloudsend.

Folder send with find example:

find ./ -maxdepth 1 -type f -exec ./cloudsend.sh {} https://cloud.mydomain.tld/s/TxWdsNX2Ln3X5kxG -p yourPassword \;

This sends everything on the current shell folder.

  • change the first ./ to change the input folder (eg. '/home/myname/myfolder')
  • -maxdepth 1 will read current folder only, more levels go deeper, supressing goes all levels.

from cloudsend.sh.

nthiery avatar nthiery commented on June 21, 2024

Thanks! I just tried the find way. It has one caveat though: the directory structure is flattened.

from cloudsend.sh.

tavinus avatar tavinus commented on June 21, 2024

Yep, there is no way to create sub-folders.

If you want to keep the tree, it would be better to send a zip or tarball.

from cloudsend.sh.

tavinus avatar tavinus commented on June 21, 2024

Like mentioned, we cannot create folders into shared links, so need to flatten or send a zip/tarball.

After more than 2 months I will guess this is solved.
Feel free to post again or reopen if the problem persists.

from cloudsend.sh.

tavinus avatar tavinus commented on June 21, 2024

Hi @nthiery

v2.2.0 is out and is the first version that can send folders.

This one will actually create the whole tree and send everything.

https://github.com/tavinus/cloudsend.sh/releases/

Cheers!

from cloudsend.sh.

nthiery avatar nthiery commented on June 21, 2024

from cloudsend.sh.

tavinus avatar tavinus commented on June 21, 2024

Just pushed v2.2.1 with some fixes to the log messages.

Cheers

from cloudsend.sh.

Related Issues (13)

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.