We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 450b30f commit e08384eCopy full SHA for e08384e
1 file changed
gcsfs/fs.go
@@ -325,9 +325,14 @@ func (fs *Fs) RemoveAll(path string) error {
325
}
326
327
pathInfo, err := fs.Stat(path)
328
+ if errors.Is(err, ErrFileNotFound) {
329
+ // return early if file doesn't exist
330
+ return nil
331
+ }
332
if err != nil {
333
return err
334
335
+
336
if !pathInfo.IsDir() {
337
return fs.Remove(path)
338
0 commit comments