fileproto.proto 423 B

1234567891011121314151617181920
  1. // This defines protocol for a simple server that lists files.
  2. //
  3. // See also the nanopb-specific options in fileproto.options.
  4. syntax = "proto2";
  5. message ListFilesRequest {
  6. optional string path = 1 [default = "/"];
  7. }
  8. message FileInfo {
  9. required uint64 inode = 1;
  10. required string name = 2;
  11. }
  12. message ListFilesResponse {
  13. optional bool path_error = 1 [default = false];
  14. repeated FileInfo file = 2;
  15. }