Ipfs is awesome , but is it really required to open a web browser to upload files into filecoin.
what if there is only one command like
git push
git pull
to upload and get filesHashdrive solves the problem, we provide a CLI tool that user can download and use it anywhere , in any directory or filepath to upload the file just with one command ,
-t :- updating the web3.storage API token
-u :- upload file to web3.storage
-d :- download file
-ls :- list all file structures in present directory
-pwd :- returns the present working directory
-cd :- change directory
We have decided to upload only files into the web3.storage , and store the file structure in a data file .This was required for
ls
,cd
andpwd
commands , where we have to traverse through the file structure, Due to this there were huge conflicts on the file storage and retrieval process.since our solution is a CLI application , one of the major problem that we faced was the situation when user enter multiple commands and functionalities at once
for downloading files from ipfs we just have a get function , as a result whenever we type the function we open a webbrowser , hence the file does not directly get download but opens a webpage , from which we have to download
window.location
to downloiad the file directly without the browserwhile installing package as a cli tool , powershell raised an error due to the insufficient permissions
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Discussion