aboutsummaryrefslogtreecommitdiff
path: root/vendor/go4.org/wkfs/gcs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go4.org/wkfs/gcs')
-rw-r--r--vendor/go4.org/wkfs/gcs/gcs.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/go4.org/wkfs/gcs/gcs.go b/vendor/go4.org/wkfs/gcs/gcs.go
index a970c75..d768824 100644
--- a/vendor/go4.org/wkfs/gcs/gcs.go
+++ b/vendor/go4.org/wkfs/gcs/gcs.go
@@ -165,6 +165,14 @@ func (fs *gcsFS) OpenFile(name string, flag int, perm os.FileMode) (wkfs.FileWri
return fs.sc.Bucket(bucket).Object(fileName).NewWriter(fs.ctx), nil
}
+func (fs *gcsFS) Remove(name string) error {
+ bucket, fileName, err := fs.parseName(name)
+ if err != nil {
+ return err
+ }
+ return fs.sc.Bucket(bucket).Object(fileName).Delete(fs.ctx)
+}
+
type statInfo struct {
name string
size int64