Skip to content

Commit

Permalink
ftp: split list_directory response (#343)
Browse files Browse the repository at this point in the history
This way we get a clear list of files and folders instead of an odd list
with F or D prefixes.
  • Loading branch information
julianoes committed Jul 15, 2024
1 parent 34bce6d commit 4fb7d97
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion protos/ftp/ftp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,15 @@ message UploadResponse {
message ListDirectoryRequest {
string remote_dir = 1; // The remote directory to list the contents for.
}

message ListDirectoryData {
repeated string dirs = 1; // The found directories.
repeated string files = 2; // The found files.
}

message ListDirectoryResponse {
FtpResult ftp_result = 1;
repeated string paths = 2; // The found directory contents.
ListDirectoryData data = 2; // The found directories and files.
}

message CreateDirectoryRequest {
Expand Down

0 comments on commit 4fb7d97

Please sign in to comment.