fetchit icon indicating copy to clipboard operation
fetchit copied to clipboard

Allow directories of recursive files to be created

Open cooktheryan opened this issue 2 years ago • 3 comments

As a fetchit user I would like to be able to define a directory and recursively place the file and directories into place based on Twitch stream

cooktheryan avatar Aug 29 '22 18:08 cooktheryan

Quick notes on this. It seems like we may strip any directories.

2022-08-29T18:46:38.630Z	INFO	Deploying file(s) fetchit-demo/jj/test2.txt
time="2022-08-29T18:46:38Z" level=info msg="Going to start container \"822f39373dd6e10f477fcffec7d77d8381772d791a19b7fb73a856eac326eaf6\""
2022-08-29T18:46:38.978Z	INFO	Moved ft-ex to commit de2fa30c8 for git target https://github.com/cooktheryan/fetchit-demo
rcook  @ /tmp/christian
└─ $ ls -la
total 8
drwxr-xr-x.  2 rcook rcook 100 Aug 29 14:46 .
drwxrwxrwt. 26 root  root  580 Aug 29 14:46 ..
-rw-r--r--.  1 rcook rcook   0 Aug 29 14:46 .gitkeep
-rw-r--r--.  1 rcook rcook  41 Aug 29 14:46 test1.txt
-rw-r--r--.  1 rcook rcook  22 Aug 29 14:46 test2.txt

cooktheryan avatar Aug 29 '22 18:08 cooktheryan

This is the item that would need the fix in filetransfer.go

file := filepath.Base(path)

cooktheryan avatar Aug 29 '22 18:08 cooktheryan

Items come in with $REPO/$FILEPATH example fetchit-demo/kp/app.yaml if we can just strip the known field of repo we should be fine

cooktheryan avatar Aug 29 '22 18:08 cooktheryan