11package filesystem
22
3- // PathExistsRequest is the internal representation of requests to the PathExists endpoint.
43type PathExistsRequest struct {
54 // The path whose existence we want to check in the host's filesystem
65 Path string
76}
87
9- // PathExistsResponse is the internal representation of responses from the PathExists endpoint.
108type PathExistsResponse struct {
119 // Indicates whether the path in PathExistsRequest exists in the host's filesystem
1210 Exists bool
1311}
1412
15- // PathValidRequest is the internal representation of requests to the PathValid endpoint.
1613type PathValidRequest struct {
1714 // The path whose validity we want to check in the host's filesystem
1815 Path string
1916}
2017
21- // PathValidResponse is the internal representation of responses from the PathValid endpoint.
2218type PathValidResponse struct {
2319 // Indicates whether the path in PathValidRequest is a valid path
2420 Valid bool
@@ -47,6 +43,7 @@ type MkdirRequest struct {
4743}
4844
4945type MkdirResponse struct {
46+ // Intentionally empty
5047}
5148
5249type RmdirRequest struct {
@@ -66,11 +63,13 @@ type RmdirRequest struct {
6663 // Path cannot be a file of type symlink.
6764 // Maximum path length will be capped to 260 characters.
6865 Path string
66+
6967 // Force remove all contents under path (if any).
7068 Force bool
7169}
7270
7371type RmdirResponse struct {
72+ // Intentionally empty
7473}
7574
7675type RmdirContentsRequest struct {
@@ -93,6 +92,7 @@ type RmdirContentsRequest struct {
9392}
9493
9594type RmdirContentsResponse struct {
95+ // Intentionally empty
9696}
9797
9898type CreateSymlinkRequest struct {
@@ -111,6 +111,7 @@ type CreateSymlinkRequest struct {
111111 // source_path cannot already exist in the host filesystem.
112112 // Maximum path length will be capped to 260 characters.
113113 SourcePath string
114+
114115 // Target path is the location of the new directory entry to be created in the host's filesystem.
115116 // All special characters allowed by Windows in path names will be allowed
116117 // except for restrictions noted below. For details, please check:
@@ -130,12 +131,15 @@ type CreateSymlinkRequest struct {
130131}
131132
132133type CreateSymlinkResponse struct {
134+ // Intentionally empty
133135}
134136
135137type IsSymlinkRequest struct {
138+ // The path whose existence as a symlink we want to check in the host's filesystem
136139 Path string
137140}
138141
139142type IsSymlinkResponse struct {
143+ // Indicates whether the path in IsSymlinkRequest is a symlink
140144 IsSymlink bool
141145}
0 commit comments