mirror of
https://github.com/rclone/rclone.git
synced 2026-01-06 10:33:34 +00:00
press -> compress
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
_ "github.com/rclone/rclone/backend/box"
|
||||
_ "github.com/rclone/rclone/backend/cache"
|
||||
_ "github.com/rclone/rclone/backend/chunker"
|
||||
_ "github.com/rclone/rclone/backend/compress"
|
||||
_ "github.com/rclone/rclone/backend/crypt"
|
||||
_ "github.com/rclone/rclone/backend/drive"
|
||||
_ "github.com/rclone/rclone/backend/dropbox"
|
||||
@@ -28,7 +29,6 @@ import (
|
||||
_ "github.com/rclone/rclone/backend/opendrive"
|
||||
_ "github.com/rclone/rclone/backend/pcloud"
|
||||
_ "github.com/rclone/rclone/backend/premiumizeme"
|
||||
_ "github.com/rclone/rclone/backend/press"
|
||||
_ "github.com/rclone/rclone/backend/putio"
|
||||
_ "github.com/rclone/rclone/backend/qingstor"
|
||||
_ "github.com/rclone/rclone/backend/s3"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Package press provides wrappers for Fs and Object which implement compression.
|
||||
package press
|
||||
// Package compress provides wrappers for Fs and Object which implement compression.
|
||||
package compress
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
@@ -61,7 +61,7 @@ func init() {
|
||||
|
||||
// Register our remote
|
||||
fs.Register(&fs.RegInfo{
|
||||
Name: "press",
|
||||
Name: "compress",
|
||||
Description: "Compress a remote",
|
||||
NewFs: NewFs,
|
||||
Options: []fs.Option{{
|
||||
@@ -1,5 +1,5 @@
|
||||
// Test Crypt filesystem interface
|
||||
package press
|
||||
package compress
|
||||
|
||||
import (
|
||||
"os"
|
||||
@@ -41,8 +41,8 @@ func TestRemoteGzip(t *testing.T) {
|
||||
if *fstest.RemoteName != "" {
|
||||
t.Skip("Skipping as -remote set")
|
||||
}
|
||||
tempdir := filepath.Join(os.TempDir(), "rclone-press-test-gzip")
|
||||
name := "TestPressGzip"
|
||||
tempdir := filepath.Join(os.TempDir(), "rclone-compress-test-gzip")
|
||||
name := "TestCompressGzip"
|
||||
fstests.Run(t, &fstests.Opt{
|
||||
RemoteName: name + ":",
|
||||
NilObject: (*Object)(nil),
|
||||
@@ -60,7 +60,7 @@ func TestRemoteGzip(t *testing.T) {
|
||||
"SetTier",
|
||||
},
|
||||
ExtraConfig: []fstests.ExtraConfigItem{
|
||||
{Name: name, Key: "type", Value: "press"},
|
||||
{Name: name, Key: "type", Value: "compress"},
|
||||
{Name: name, Key: "remote", Value: tempdir},
|
||||
{Name: name, Key: "compression_mode", Value: "gzip"},
|
||||
},
|
||||
1
backend/press/.gitignore
vendored
1
backend/press/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
test
|
||||
Reference in New Issue
Block a user