+2
-4
@@ -49,10 +49,8 @@ func (client *Client) UploadFile(ctx context.Context, name string, mimeType stri
|
||||
}
|
||||
|
||||
// RemoveFile removes a file from the space
|
||||
func (client *Client) RemoveFile(folder string, name string) error {
|
||||
path := folder + "/" + name
|
||||
|
||||
return client.s3.RemoveObject(client.bucket, client.spaceRoot+"/"+path)
|
||||
func (client *Client) RemoveFile(name string) error {
|
||||
return client.s3.RemoveObject(client.bucket, client.spaceRoot+"/"+name)
|
||||
}
|
||||
|
||||
// DownloadFile opens a file for download, using the same path format as the UploadFile function. Remember to Close it!
|
||||
|
||||
Reference in New Issue
Block a user