Commit 0298da9
authored
Dev server rust (#52)
* feat: Implement file listing, permission changes, and search functionalities
- Added `list_files` handler to list files in a directory with pagination and filtering options.
- Introduced `change_permissions` handler to modify file permissions, supporting recursive changes.
- Implemented `search_files`, `find_in_files`, and `replace_in_files` handlers for file operations based on name and content.
- Created `FileInfo` struct to encapsulate file metadata for responses.
- Updated router to include new file-related endpoints.
- Enhanced path validation to ensure safe access to file system.
- Added comprehensive tests for new functionalities, including permission changes and search operations.
Signed-off-by: zzjin <tczzjin@gmail.com>
* feat: Add version information and help option to server command
Signed-off-by: zzjin <tczzjin@gmail.com>
---------
Signed-off-by: zzjin <tczzjin@gmail.com>1 parent 1578265 commit 0298da9
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | | - | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
| |||
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
| |||
0 commit comments