Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoShare should support sharing a specific file, not the entire directory where the file is located #4

Open
duruyao opened this issue Feb 14, 2023 · 0 comments
Assignees

Comments

@duruyao
Copy link
Owner

duruyao commented Feb 14, 2023

I just want to share the file HELLO.txt, but the whole directory is shared.

$ echo $PWD
/home/duruyao/tmp
$ ls
HELLO.txt  HI.txt
$ goshare -v
GoShare 1.1.0 (2022-05-26)
$ goshare --path HELLO.txt

   _____       _____ _
  / ____|     / ____| |
 | |  __  ___| (___ | |__   __ _ _ __ ___
 | | |_ |/ _ \\___ \| '_ \ / _' | '__/ _ \
 | |__| | (_) |___) | | | | (_| | | |  __/
  \_____|\___/_____/|_| |_|\__,_|_|  \___|


GoShare is handing directory '/home/duruyao/tmp' and listening on 'localhost:3927'

Access your shared files via this URL http://localhost:3927/HELLO.txt
$ curl -kSsL http://localhost:3927/HI.txt -o HI.txt.bak
$ curl -kSsL http://localhost:3927/HELLO.txt -o HELLO.txt.bak
$ ls
HELLO.txt  HELLO.txt.bak  HI.txt  HI.txt.bak
@duruyao duruyao self-assigned this Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant