Update comment

This commit is contained in:
Lennart Kats 2024-09-09 09:27:13 +02:00
parent 49598cce63
commit 8abae34f7c
No known key found for this signature in database
GPG Key ID: 1EB8B57673197023
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ func (w *workspaceFilesClient) ReadDir(ctx context.Context, name string) ([]fs.D
} }
// NOTE: This API returns a 404 if the specified path does not exist, // NOTE: This API returns a 404 if the specified path does not exist,
// but can also do so if we don't have access to write to the path. // but can also do so if we don't have read access.
if aerr.StatusCode == http.StatusNotFound { if aerr.StatusCode == http.StatusNotFound {
return nil, NoSuchDirectoryError{path.Dir(absPath)} return nil, NoSuchDirectoryError{path.Dir(absPath)}
} }