-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1178 from gofr-dev/release/v1.26.0
Release/v1.26.0
- Loading branch information
Showing
66 changed files
with
7,158 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Add FileStore Example | ||
|
||
This GoFr example demonstrates a CMD application that can be used to interact with a remote file server using FTP or SFTP protocol | ||
|
||
### Setting up an FTP server in local machine | ||
- https://security.appspot.com/vsftpd.html | ||
- https://pypi.org/project/pyftpdlib/ | ||
|
||
Choose a library listed above and follow their respective documentation to configure an FTP server in your local machine and replace the configs/env file with correct HOST,USER_NAME,PASSWORD,PORT and REMOTE_DIR_PATH details. | ||
|
||
### To run the example use the commands below: | ||
To print the current working directory of the configured remote file server | ||
```console | ||
go run main.go pwd | ||
``` | ||
To get the list of all directories or files in the given path of the configured remote file server | ||
|
||
``` | ||
go run main.go ls -path=/ | ||
``` | ||
To grep the list of all files and directories in the given path that is matching with the keyword provided | ||
|
||
``` | ||
go run main.go grep -keyword=fi -path=/ | ||
``` | ||
|
||
To create a file in the current working directory with the provided filename | ||
``` | ||
go run main.go createfile -filename=file.txt | ||
``` | ||
|
||
To remove the file with the provided filename from the current working directory | ||
``` | ||
go run main.go rm -filename=file.txt | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
HOST=localhost | ||
USER_NAME=anonymous | ||
PASSWORD=test | ||
PORT=21 | ||
REMOTE_DIR_PATH=/ |
Oops, something went wrong.