repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/premiumizeme/premiumizeme.go
backend/premiumizeme/premiumizeme.go
// Package premiumizeme provides an interface to the premiumize.me // object storage system. package premiumizeme /* Run of rclone info stringNeedsEscaping = []rune{ 0x00, 0x0A, 0x0D, 0x22, 0x2F, 0x5C, 0xBF, 0xFE 0x00, 0x0A, 0x0D, '"', '/', '\\', 0xBF, 0xFE } maxFileLength = 255 canWriteUnnormalized = true canRead...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/premiumizeme/premiumizeme_test.go
backend/premiumizeme/premiumizeme_test.go
// Test filesystem interface package premiumizeme_test import ( "testing" "github.com/rclone/rclone/backend/premiumizeme" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote func TestIntegration(t *testing.T) { fstests.Run(t, &fstests.Opt{ RemoteName: "TestP...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/premiumizeme/api/types.go
backend/premiumizeme/api/types.go
// Package api contains definitions for using the premiumize.me API package api import "fmt" // Response is returned by all messages and embedded in the // structures below type Response struct { Message string `json:"message,omitempty"` Status string `json:"status"` } // Error satisfies the error interface func ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/alias/alias.go
backend/alias/alias.go
// Package alias implements a virtual provider to rename existing remotes. package alias import ( "context" "errors" "strings" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/cache" "github.com/rclone/rclone/fs/config/configmap" "github.com/rclone/rclone/fs/config/configstruct" "github.com/rclone/r...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/alias/alias_internal_test.go
backend/alias/alias_internal_test.go
package alias import ( "context" "fmt" "path" "path/filepath" "sort" "testing" _ "github.com/rclone/rclone/backend/local" // pull in test backend "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/config" "github.com/rclone/rclone/fs/config/configfile" "github.com/stretchr/testify/require" ) var (...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/hidrive/hidrive_test.go
backend/hidrive/hidrive_test.go
// Test HiDrive filesystem interface package hidrive import ( "testing" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote. func TestIntegration(t *testing.T) { name := "TestHiDrive" fstests.Run(t, &fstests.Opt{ RemoteName: na...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/hidrive/hidrive.go
backend/hidrive/hidrive.go
// Package hidrive provides an interface to the HiDrive object storage system. package hidrive // FIXME HiDrive only supports file or folder names of 255 characters or less. // Operations that create files or folders with longer names will throw an HTTP error: // - 422 Unprocessable Entity // A more graceful way for r...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/hidrive/helpers.go
backend/hidrive/helpers.go
package hidrive // This file is for helper-functions which may provide more general and // specialized functionality than the generic interfaces. // There are two sections: // 1. methods bound to Fs // 2. other functions independent from Fs used throughout the package // NOTE: Functions accessing paths expect any rel...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/hidrive/api/types.go
backend/hidrive/api/types.go
// Package api has type definitions and code related to API-calls for the HiDrive-API. package api import ( "encoding/json" "fmt" "net/url" "strconv" "time" ) // Time represents date and time information for the API. type Time time.Time // MarshalJSON turns Time into JSON (in Unix-time/UTC). func (t *Time) Mars...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/hidrive/api/queries.go
backend/hidrive/api/queries.go
package api import ( "encoding/json" "net/url" "path" "strings" "time" ) // Some presets for different amounts of information that can be requested for fields; // it is recommended to only request the information that is actually needed. var ( HiDriveObjectNoMetadataFields = []string{"name", "type"} ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/hidrive/hidrivehash/hidrivehash_test.go
backend/hidrive/hidrivehash/hidrivehash_test.go
package hidrivehash_test import ( "crypto/sha1" "encoding" "encoding/hex" "fmt" "io" "testing" "github.com/rclone/rclone/backend/hidrive/hidrivehash" "github.com/rclone/rclone/backend/hidrive/hidrivehash/internal" "github.com/stretchr/testify/assert" ) // helper functions to set up test-tables func sha1Arr...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/hidrive/hidrivehash/hidrivehash.go
backend/hidrive/hidrivehash/hidrivehash.go
// Package hidrivehash implements the HiDrive hashing algorithm which combines SHA-1 hashes hierarchically to a single top-level hash. // // Note: This implementation does not grant access to any partial hashes generated. // // See: https://developer.hidrive.com/wp-content/uploads/2021/07/HiDrive_Synchronization-v3.3-r...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/hidrive/hidrivehash/internal/internal.go
backend/hidrive/hidrivehash/internal/internal.go
// Package internal provides utilities for HiDrive. package internal import ( "encoding" "hash" ) // LevelHash is an internal interface for level-hashes. type LevelHash interface { encoding.BinaryMarshaler encoding.BinaryUnmarshaler hash.Hash // Add takes a position-embedded checksum and adds it to the level. ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/storj/storj_unsupported.go
backend/storj/storj_unsupported.go
//go:build plan9 // Package storj provides an interface to Storj decentralized object storage. package storj
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/storj/object.go
backend/storj/object.go
//go:build !plan9 package storj import ( "context" "errors" "io" "path" "time" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/hash" "github.com/rclone/rclone/lib/bucket" "golang.org/x/text/unicode/norm" "storj.io/uplink" ) // Object describes a Storj object type Object struct { fs *Fs abso...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/storj/storj_test.go
backend/storj/storj_test.go
//go:build !plan9 // Test Storj filesystem interface package storj_test import ( "testing" "github.com/rclone/rclone/backend/storj" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote func TestIntegration(t *testing.T) { fstests.Run(t, &fstests.Opt{ RemoteN...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/storj/fs.go
backend/storj/fs.go
//go:build !plan9 // Package storj provides an interface to Storj decentralized object storage. package storj import ( "context" "errors" "fmt" "io" "path" "strings" "time" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/config" "github.com/rclone/rclone/fs/config/configmap" "github.com/rclone/...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/imagekit/util.go
backend/imagekit/util.go
package imagekit import ( "context" "fmt" "net/http" "slices" "strconv" "time" "github.com/rclone/rclone/backend/imagekit/client" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/fserrors" "github.com/rclone/rclone/lib/pacer" ) func (f *Fs) getFiles(ctx context.Context, path string, includeVersio...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/imagekit/imagekit_test.go
backend/imagekit/imagekit_test.go
package imagekit import ( "testing" "github.com/rclone/rclone/fstest" "github.com/rclone/rclone/fstest/fstests" ) func TestIntegration(t *testing.T) { debug := true fstest.Verbose = &debug fstests.Run(t, &fstests.Opt{ RemoteName: "TestImageKit:", NilObject: (*Object)(nil), SkipFsCheckWrap: tru...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/imagekit/imagekit.go
backend/imagekit/imagekit.go
// Package imagekit provides an interface to the ImageKit.io media library. package imagekit import ( "context" "errors" "fmt" "io" "math" "net/http" "path" "strconv" "strings" "time" "github.com/rclone/rclone/backend/imagekit/client" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/config" "g...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/imagekit/client/client.go
backend/imagekit/client/client.go
// Package client provides a client for interacting with the ImageKit API. package client import ( "context" "fmt" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/fshttp" "github.com/rclone/rclone/lib/rest" ) // ImageKit main struct type ImageKit struct { Prefix string UploadPrefix string ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/imagekit/client/media.go
backend/imagekit/client/media.go
package client import ( "context" "errors" "fmt" "net/http" "net/url" "time" "github.com/rclone/rclone/lib/rest" "gopkg.in/validator.v2" ) // FilesOrFolderParam struct is a parameter type to ListFiles() function to search / list media library files. type FilesOrFolderParam struct { Path string `json:...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/imagekit/client/url.go
backend/imagekit/client/url.go
package client import ( "crypto/hmac" "crypto/sha1" "encoding/hex" "fmt" neturl "net/url" "strconv" "strings" "time" ) // URLParam represents parameters for generating url type URLParam struct { Path string Src string URLEndpoint string Signed bool ExpireSeconds int6...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/imagekit/client/upload.go
backend/imagekit/client/upload.go
package client import ( "context" "errors" "fmt" "io" "net/http" "net/url" "github.com/rclone/rclone/lib/rest" ) // UploadParam defines upload parameters type UploadParam struct { FileName string `json:"fileName"` Folder string `json:"folder,omitempty"` // default value: / Tags string...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/b2/b2.go
backend/b2/b2.go
// Package b2 provides an interface to the Backblaze B2 object storage system. package b2 // FIXME should we remove sha1 checks from here as rclone now supports // checking SHA1s? import ( "bufio" "bytes" "context" "crypto/md5" "crypto/sha1" "encoding/base64" "encoding/json" "errors" "fmt" gohash "hash" "i...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/b2/b2_test.go
backend/b2/b2_test.go
// Test B2 filesystem interface package b2 import ( "testing" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote func TestIntegration(t *testing.T) { fstests.Run(t, &fstests.Opt{ RemoteName: "TestB2:", NilObject: (*Object)(n...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/b2/b2_internal_test.go
backend/b2/b2_internal_test.go
package b2 import ( "context" "crypto/sha1" "fmt" "path" "sort" "strings" "testing" "time" "github.com/rclone/rclone/backend/b2/api" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/cache" "github.com/rclone/rclone/fs/hash" "github.com/rclone/rclone/fs/object" "github.com/rclone/rclone/fstest"...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/b2/upload.go
backend/b2/upload.go
// Upload large files for b2 // // Docs - https://www.backblaze.com/docs/cloud-storage-large-files package b2 import ( "context" "crypto/sha1" "encoding/hex" "fmt" gohash "hash" "io" "strings" "sync" "github.com/rclone/rclone/backend/b2/api" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/accou...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/b2/api/types_test.go
backend/b2/api/types_test.go
package api_test import ( "testing" "time" "github.com/rclone/rclone/backend/b2/api" "github.com/rclone/rclone/fstest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) var ( emptyT api.Timestamp t0 = api.Timestamp(fstest.Time("1970-01-01T01:01:01.123456789Z")) t1 = api.Ti...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/b2/api/types.go
backend/b2/api/types.go
// Package api provides types used by the Backblaze B2 API. package api import ( "fmt" "strconv" "time" "github.com/rclone/rclone/fs/fserrors" "github.com/rclone/rclone/lib/version" ) // Error describes a B2 error response type Error struct { Status int `json:"status"` // The numeric HTTP status code. Alw...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/swift/swift_test.go
backend/swift/swift_test.go
// Test Swift filesystem interface package swift import ( "bytes" "context" "errors" "io" "testing" "github.com/ncw/swift/v2" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/hash" "github.com/rclone/rclone/fs/object" "github.com/rclone/rclone/fstest" "github.com/rclone/rclone/fstest/fstests" "g...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/swift/auth.go
backend/swift/auth.go
package swift import ( "context" "net/http" "time" "github.com/ncw/swift/v2" ) // auth is an authenticator for swift. It overrides the StorageUrl // and AuthToken with fixed values. type auth struct { parentAuth swift.Authenticator storageURL string authToken string } // newAuth creates a swift authenticat...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/swift/swift.go
backend/swift/swift.go
// Package swift provides an interface to the Swift object storage system package swift import ( "bufio" "bytes" "context" "errors" "fmt" "io" "maps" "path" "regexp" "slices" "strconv" "strings" "sync" "time" "github.com/ncw/swift/v2" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/config"...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/swift/swift_internal_test.go
backend/swift/swift_internal_test.go
package swift import ( "context" "testing" "time" "github.com/ncw/swift/v2" "github.com/rclone/rclone/fs/fserrors" "github.com/stretchr/testify/assert" ) func TestInternalUrlEncode(t *testing.T) { for _, test := range []struct { in string want string }{ {"", ""}, {"abcdefghijklmnopqrstuvwxyz", "abc...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/compress/compress.go
backend/compress/compress.go
// Package compress provides wrappers for Fs and Object which implement compression. package compress import ( "bytes" "context" "encoding/base64" "encoding/binary" "encoding/hex" "encoding/json" "errors" "fmt" "io" "os" "path" "regexp" "strings" "time" "github.com/buengese/sgzip" "github.com/gabriel-...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/compress/uncompressed_handler.go
backend/compress/uncompressed_handler.go
package compress import ( "context" "fmt" "io" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/chunkedreader" ) // uncompressedModeHandler implements compressionModeHandler for uncompressed files type uncompressedModeHandler struct{} // isCompressible checks the compression ratio of the provided dat...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/compress/zstd_handler.go
backend/compress/zstd_handler.go
package compress import ( "bufio" "bytes" "context" "crypto/md5" "encoding/hex" "errors" "io" "github.com/klauspost/compress/zstd" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/accounting" "github.com/rclone/rclone/fs/chunkedreader" "github.com/rclone/rclone/fs/hash" ) // zstdModeHandler im...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/compress/unknown_handler.go
backend/compress/unknown_handler.go
package compress import ( "context" "fmt" "io" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/chunkedreader" ) // unknownModeHandler implements compressionModeHandler for unknown compression types type unknownModeHandler struct{} // isCompressible checks the compression ratio of the provided data a...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/compress/szstd_helper.go
backend/compress/szstd_helper.go
package compress import ( "context" "errors" "io" "runtime" "sync" szstd "github.com/a1ex3/zstd-seekable-format-go/pkg" "github.com/klauspost/compress/zstd" ) const szstdChunkSize int = 1 << 20 // 1 MiB chunk size // SzstdMetadata holds metadata for szstd compressed files. type SzstdMetadata struct { BlockS...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/compress/gzip_handler.go
backend/compress/gzip_handler.go
package compress import ( "bufio" "bytes" "context" "crypto/md5" "encoding/hex" "errors" "io" "github.com/buengese/sgzip" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/accounting" "github.com/rclone/rclone/fs/chunkedreader" "github.com/rclone/rclone/fs/hash" ) // gzipModeHandler implements ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/compress/compress_test.go
backend/compress/compress_test.go
// Test Crypt filesystem interface package compress import ( "os" "path/filepath" "testing" _ "github.com/rclone/rclone/backend/drive" _ "github.com/rclone/rclone/backend/local" _ "github.com/rclone/rclone/backend/s3" _ "github.com/rclone/rclone/backend/swift" "github.com/rclone/rclone/fstest" "github.com/rc...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/ftp/ftp_internal_test.go
backend/ftp/ftp_internal_test.go
package ftp import ( "context" "fmt" "strings" "testing" "time" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/config/configmap" "github.com/rclone/rclone/fs/object" "github.com/rclone/rclone/fstest" "github.com/rclone/rclone/fstest/fstests" "github.com/rclone/rclone/lib/readers" "github.com/s...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/ftp/ftp.go
backend/ftp/ftp.go
// Package ftp interfaces with FTP servers package ftp import ( "context" "crypto/tls" "errors" "fmt" "io" "net" "net/textproto" "net/url" "path" "runtime" "strings" "sync" "time" "github.com/jlaffaye/ftp" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/accounting" "github.com/rclone/rclon...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/ftp/ftp_test.go
backend/ftp/ftp_test.go
// Test FTP filesystem interface package ftp_test import ( "testing" "github.com/rclone/rclone/backend/ftp" "github.com/rclone/rclone/fstest" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against rclone FTP server func TestIntegration(t *testing.T) { fstests.Run(t, &fstes...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/shade/shade.go
backend/shade/shade.go
// Package shade provides an interface to the Shade storage system. package shade import ( "bytes" "context" "encoding/base64" "encoding/json" "errors" "fmt" "io" "net/http" "net/url" "path" "path/filepath" "strings" "sync" "time" "github.com/rclone/rclone/backend/shade/api" "github.com/rclone/rclone/...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/shade/upload.go
backend/shade/upload.go
//multipart upload for shade package shade import ( "bytes" "context" "fmt" "io" "net/http" "net/url" "path" "sort" "sync" "github.com/rclone/rclone/backend/shade/api" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/chunksize" "github.com/rclone/rclone/lib/multipart" "github.com/rclone/rclon...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/shade/shade_test.go
backend/shade/shade_test.go
package shade_test import ( "testing" "github.com/rclone/rclone/backend/shade" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote func TestIntegration(t *testing.T) { name := "TestShade" fstests.Run(t, &fstests.Opt{ RemoteName: name + ":", NilObject...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/shade/api/types.go
backend/shade/api/types.go
// Package api has type definitions for shade package api // ListDirResponse ------------------------------------------------- // Format from shade api type ListDirResponse struct { Type string `json:"type"` // "file" or "tree" Path string `json:"path"` // Full path including root Ino int `json:"ino"` //...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/all/all.go
backend/all/all.go
// Package all imports all the backends package all import ( // Active file systems _ "github.com/rclone/rclone/backend/alias" _ "github.com/rclone/rclone/backend/archive" _ "github.com/rclone/rclone/backend/azureblob" _ "github.com/rclone/rclone/backend/azurefiles" _ "github.com/rclone/rclone/backend/b2" _ "gi...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/filefabric/filefabric.go
backend/filefabric/filefabric.go
// Package filefabric provides an interface to Storage Made Easy's // Enterprise File Fabric storage system. package filefabric /* Docs: https://product-demo.smestorage.com/?p=apidoc Missing features: - M-Stream support - Oauth-like flow (soon being changed to oauth) // TestFileFabric maxFileLength = 14094 */ impor...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/filefabric/filefabric_test.go
backend/filefabric/filefabric_test.go
// Test filefabric filesystem interface package filefabric_test import ( "testing" "github.com/rclone/rclone/backend/filefabric" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote func TestIntegration(t *testing.T) { fstests.Run(t, &fstests.Opt{ RemoteName:...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/filefabric/api/types.go
backend/filefabric/api/types.go
// Package api has type definitions for filefabric // // Converted from the API responses with help from https://mholt.github.io/json-to-go/ package api import ( "bytes" "encoding/json" "fmt" "reflect" "strings" "time" ) const ( // TimeFormat for parameters (UTC) timeFormatParameters = `2006-01-02 15:04:05` ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/internetarchive/internetarchive.go
backend/internetarchive/internetarchive.go
// Package internetarchive provides an interface to Internet Archive's Item // via their native API than using S3-compatible endpoints. package internetarchive import ( "bytes" "context" "encoding/json" "errors" "fmt" "io" "net/http" "net/url" "path" "regexp" "slices" "strconv" "strings" "time" "github...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/internetarchive/internetarchive_test.go
backend/internetarchive/internetarchive_test.go
// Test internetarchive filesystem interface package internetarchive_test import ( "testing" "github.com/rclone/rclone/backend/internetarchive" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote func TestIntegration(t *testing.T) { fstests.Run(t, &fstests.Opt...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/azurefiles/azurefiles.go
backend/azurefiles/azurefiles.go
//go:build !plan9 && !js // Package azurefiles provides an interface to Microsoft Azure Files package azurefiles /* TODO This uses LastWriteTime which seems to work. The API return also has LastModified - needs investigation Needs pacer to have retries HTTP headers need to be passed Could suppor...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/azurefiles/azurefiles_unsupported.go
backend/azurefiles/azurefiles_unsupported.go
// Build for azurefiles for unsupported platforms to stop go complaining // about "no buildable Go source files " //go:build plan9 || js // Package azurefiles provides an interface to Microsoft Azure Files package azurefiles
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/azurefiles/azurefiles_internal_test.go
backend/azurefiles/azurefiles_internal_test.go
//go:build !plan9 && !js package azurefiles import ( "context" "math/rand" "strings" "testing" "github.com/rclone/rclone/fstest/fstests" "github.com/stretchr/testify/assert" ) func (f *Fs) InternalTest(t *testing.T) { t.Run("Authentication", f.InternalTestAuth) } var _ fstests.InternalTester = (*Fs)(nil) f...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/azurefiles/azurefiles_test.go
backend/azurefiles/azurefiles_test.go
//go:build !plan9 && !js package azurefiles import ( "testing" "github.com/rclone/rclone/fstest/fstests" ) func TestIntegration(t *testing.T) { var objPtr *Object fstests.Run(t, &fstests.Opt{ RemoteName: "TestAzureFiles:", NilObject: objPtr, }) }
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/protondrive/protondrive_test.go
backend/protondrive/protondrive_test.go
package protondrive_test import ( "testing" "github.com/rclone/rclone/backend/protondrive" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote func TestIntegration(t *testing.T) { fstests.Run(t, &fstests.Opt{ RemoteName: "TestProtonDrive:", NilObject: (*p...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/protondrive/protondrive.go
backend/protondrive/protondrive.go
// Package protondrive implements the Proton Drive backend package protondrive import ( "context" "errors" "fmt" "io" "path" "strings" "time" protonDriveAPI "github.com/henrybear327/Proton-API-Bridge" "github.com/henrybear327/go-proton-api" "github.com/pquerna/otp/totp" "github.com/rclone/rclone/fs" "gi...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/seafile/seafile.go
backend/seafile/seafile.go
// Package seafile provides an interface to the Seafile storage system. package seafile import ( "context" "errors" "fmt" "io" "net/http" "net/url" "path" "strconv" "strings" "sync" "time" "github.com/coreos/go-semver/semver" "github.com/rclone/rclone/backend/seafile/api" "github.com/rclone/rclone/fs" ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/seafile/webapi.go
backend/seafile/webapi.go
package seafile import ( "bytes" "context" "errors" "fmt" "io" "net/http" "net/url" "path" "strings" "github.com/rclone/rclone/backend/seafile/api" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/lib/readers" "github.com/rclone/rclone/lib/rest" ) // Start of the API URLs const ( APIv20 = "api2/...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/seafile/pacer.go
backend/seafile/pacer.go
package seafile import ( "context" "fmt" "net/url" "sync" "time" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/lib/pacer" ) const ( minSleep = 100 * time.Millisecond maxSleep = 10 * time.Second decayConstant = 2 // bigger for slower decay, exponential ) // Use only one pacer per server...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/seafile/seafile_test.go
backend/seafile/seafile_test.go
// Test Seafile filesystem interface package seafile_test import ( "testing" "github.com/rclone/rclone/backend/seafile" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote func TestIntegration(t *testing.T) { fstests.Run(t, &fstests.Opt{ RemoteName: "TestSea...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/seafile/renew.go
backend/seafile/renew.go
package seafile import ( "sync" "time" "github.com/rclone/rclone/fs" ) // Renew allows tokens to be renewed on expiry. type Renew struct { ts *time.Ticker // timer indicating when it's time to renew the token run func() error // the callback to do the renewal done chan any // channel to end ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/seafile/renew_test.go
backend/seafile/renew_test.go
package seafile import ( "sync/atomic" "testing" "time" "github.com/stretchr/testify/assert" ) func TestShouldAllowShutdownTwice(t *testing.T) { renew := NewRenew(time.Hour, func() error { return nil }) renew.Shutdown() renew.Shutdown() } func TestRenewalInTimeLimit(t *testing.T) { var count atomic.Int64...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/seafile/object.go
backend/seafile/object.go
package seafile import ( "context" "io" "time" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/hash" ) // Object describes a seafile object (also commonly called a file) type Object struct { fs *Fs // what this object is part of id string // internal ID of object rem...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/seafile/seafile_internal_test.go
backend/seafile/seafile_internal_test.go
package seafile import ( "context" "path" "testing" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/config/configmap" "github.com/rclone/rclone/fs/config/obscure" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) type pathData struct { configLibrary string // Library ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/seafile/api/types.go
backend/seafile/api/types.go
// Package api provides types used by the Seafile API. package api // Some api objects are duplicated with only small differences, // it's because the returned JSON objects are very inconsistent between api calls // AuthenticationRequest contains user credentials type AuthenticationRequest struct { Username string `...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/ulozto/ulozto_test.go
backend/ulozto/ulozto_test.go
package ulozto import ( "context" "errors" "testing" "time" "github.com/rclone/rclone/backend/ulozto/api" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/hash" "github.com/rclone/rclone/fs/operations" "github.com/rclone/rclone/fstest" "github.com/stretchr/testify/require" "github.com/rclone/rcl...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/ulozto/ulozto.go
backend/ulozto/ulozto.go
// Package ulozto provides an interface to the Uloz.to storage system. package ulozto import ( "bytes" "context" "encoding/base64" "encoding/gob" "encoding/hex" "errors" "fmt" "io" "net/http" "net/url" "path" "strconv" "strings" "time" "github.com/rclone/rclone/backend/ulozto/api" "github.com/rclone/r...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/ulozto/api/types.go
backend/ulozto/api/types.go
// Package api has type definitions for uloz.to package api import ( "errors" "fmt" "time" ) // Error is a representation of the JSON structure returned by uloz.to for unsuccessful requests. type Error struct { ErrorCode int `json:"error"` StatusCode int `json:"code"` Message string `json:"message"` }...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/googlecloudstorage/googlecloudstorage.go
backend/googlecloudstorage/googlecloudstorage.go
// Package googlecloudstorage provides an interface to Google Cloud Storage package googlecloudstorage /* Notes Can't set Updated but can set Metadata on object creation Patch needs full_control not just read_write FIXME Patch/Delete/Get isn't working with files with spaces in - giving 404 error - https://code.goog...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/googlecloudstorage/googlecloudstorage_test.go
backend/googlecloudstorage/googlecloudstorage_test.go
// Test GoogleCloudStorage filesystem interface package googlecloudstorage_test import ( "testing" "github.com/rclone/rclone/backend/googlecloudstorage" "github.com/rclone/rclone/fstest" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote func TestIntegration...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/linkbox/linkbox_test.go
backend/linkbox/linkbox_test.go
// Test Linkbox filesystem interface package linkbox_test import ( "testing" "github.com/rclone/rclone/backend/linkbox" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote func TestIntegration(t *testing.T) { fstests.Run(t, &fstests.Opt{ RemoteName: "TestLin...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/linkbox/linkbox.go
backend/linkbox/linkbox.go
// Package linkbox provides an interface to the linkbox.to Cloud storage system. // // API docs: https://www.linkbox.to/api-docs package linkbox /* Extras - PublicLink - NO - sharing doesn't share the actual file, only a page with it on - Move - YES - have Move and Rename file APIs so is possible - MoveDir...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/box/box_test.go
backend/box/box_test.go
// Test Box filesystem interface package box_test import ( "testing" "github.com/rclone/rclone/backend/box" "github.com/rclone/rclone/fstest/fstests" ) // TestIntegration runs integration tests against the remote func TestIntegration(t *testing.T) { fstests.Run(t, &fstests.Opt{ RemoteName: "TestBox:", NilObj...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/box/box.go
backend/box/box.go
// Package box provides an interface to the Box // object storage system. package box // FIXME Box only supports file names of 255 characters or less. Names // that will not be supported are those that contain non-printable // ascii, / or \, names with trailing spaces, and the special names // “.” and “..”. // FIXME ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/box/upload.go
backend/box/upload.go
// multipart upload for box package box import ( "bytes" "context" "crypto/sha1" "encoding/base64" "encoding/json" "errors" "fmt" "io" "net/http" "strconv" "sync" "time" "github.com/rclone/rclone/backend/box/api" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/accounting" "github.com/rclon...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/box/api/types.go
backend/box/api/types.go
// Package api has type definitions for box // // Converted from the API docs with help from https://mholt.github.io/json-to-go/ package api import ( "encoding/json" "fmt" "time" ) const ( // 2017-05-03T07:26:10-07:00 timeFormat = `"` + time.RFC3339 + `"` ) // Time represents date and time information for the /...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/fadvise_unix.go
backend/local/fadvise_unix.go
//go:build linux package local import ( "io" "os" "github.com/rclone/rclone/fs" "golang.org/x/sys/unix" ) // fadvise provides means to automate freeing pages in kernel page cache for // a given file descriptor as the file is sequentially processed (read or // written). // // When copying a file to a remote back...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/xattr.go
backend/local/xattr.go
//go:build !openbsd && !plan9 package local import ( "fmt" "strings" "syscall" "github.com/pkg/xattr" "github.com/rclone/rclone/fs" ) const ( xattrPrefix = "user." // FIXME is this correct for all unixes? xattrSupported = xattr.XATTR_SUPPORTED ) // Check to see if the error supplied is a not supported er...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/local.go
backend/local/local.go
// Package local provides a filesystem interface package local import ( "bytes" "context" "errors" "fmt" "io" iofs "io/fs" "os" "path" "path/filepath" "runtime" "strings" "sync" "sync/atomic" "time" "unicode/utf8" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/accounting" "github.com/rcl...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
true
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/clone_darwin.go
backend/local/clone_darwin.go
//go:build darwin && cgo // Package local provides a filesystem interface package local import ( "context" "fmt" "path/filepath" "runtime" "github.com/go-darwin/apfs" "github.com/rclone/rclone/fs" ) // Copy src to this remote using server-side copy operations. // // # This is stored with the remote path given...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/lchtimes_windows.go
backend/local/lchtimes_windows.go
//go:build windows package local import ( "time" ) const haveLChtimes = true // lChtimes changes the access and modification times of the named // link, similar to the Unix utime() or utimes() functions. // // The underlying filesystem may truncate or round the values to a // less precise time unit. // If there is...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/local_internal_windows_test.go
backend/local/local_internal_windows_test.go
//go:build windows package local import ( "context" "path/filepath" "runtime" "syscall" "testing" "github.com/rclone/rclone/fs/operations" "github.com/rclone/rclone/fstest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) // TestRmdirWindows tests that FILE_ATTRIBUTE_READONLY do...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/lchtimes.go
backend/local/lchtimes.go
//go:build plan9 || js package local import ( "time" ) const haveLChtimes = false // lChtimes changes the access and modification times of the named // link, similar to the Unix utime() or utimes() functions. // // The underlying filesystem may truncate or round the values to a // less precise time unit. // If the...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/fadvise_other.go
backend/local/fadvise_other.go
//go:build !linux package local import ( "io" "os" ) func newFadviseReadCloser(o *Object, f *os.File, offset, limit int64) io.ReadCloser { return f }
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/metadata.go
backend/local/metadata.go
package local import ( "fmt" "math" "os" "runtime" "strconv" "time" "github.com/rclone/rclone/fs" ) const metadataTimeFormat = time.RFC3339Nano // system metadata keys which this backend owns // // not all values supported on all OSes var systemMetadataInfo = map[string]fs.MetadataHelp{ "mode": { Help: ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/remove_other.go
backend/local/remove_other.go
//go:build !windows package local import "os" // Removes name, retrying on a sharing violation func remove(name string) error { return os.Remove(name) }
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/symlink_other.go
backend/local/symlink_other.go
//go:build windows || plan9 || js package local import ( "strings" ) // isCircularSymlinkError checks if the current error code is because of a circular symlink func isCircularSymlinkError(err error) bool { if err != nil { if strings.Contains(err.Error(), "The name of the file cannot be resolved by the system") ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/remove_test.go
backend/local/remove_test.go
package local import ( "os" "sync" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) // Check we can remove an open file func TestRemove(t *testing.T) { fd, err := os.CreateTemp("", "rclone-remove-test") require.NoError(t, err) name := fd.Name() defer func() { ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/lchmod_unix.go
backend/local/lchmod_unix.go
//go:build !windows && !plan9 && !js && !linux package local import ( "os" "syscall" "golang.org/x/sys/unix" ) const haveLChmod = true // syscallMode returns the syscall-specific mode bits from Go's portable mode bits. // // Borrowed from the syscall source since it isn't public. func syscallMode(i os.FileMode)...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/local_internal_test.go
backend/local/local_internal_test.go
package local import ( "bytes" "context" "fmt" "io" "os" "path" "path/filepath" "runtime" "sort" "testing" "time" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/accounting" "github.com/rclone/rclone/fs/config/configmap" "github.com/rclone/rclone/fs/filter" "github.com/rclone/rclone/fs/hash...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/xattr_unsupported.go
backend/local/xattr_unsupported.go
// The pkg/xattr module doesn't compile for openbsd or plan9 //go:build openbsd || plan9 package local import "github.com/rclone/rclone/fs" const ( xattrSupported = false ) // getXattr returns the extended attributes for an object func (o *Object) getXattr() (metadata fs.Metadata, err error) { return nil, nil } ...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/tests_test.go
backend/local/tests_test.go
package local import ( "runtime" "testing" "github.com/rclone/rclone/lib/encoder" ) // Test Windows character replacements var testsWindows = [][2]string{ {`c:\temp`, `c:\temp`}, {`\\?\UNC\theserver\dir\file.txt`, `\\?\UNC\theserver\dir\file.txt`}, {`//?/UNC/theserver/dir\file.txt`, `\\?\UNC\theserver\dir\file...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/setbtime.go
backend/local/setbtime.go
//go:build !windows package local import ( "time" ) const haveSetBTime = false // setBTime changes the birth time of the file passed in func setBTime(name string, btime time.Time) error { // Does nothing return nil } // lsetBTime changes the birth time of the link passed in func lsetBTime(name string, btime tim...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/read_device_other.go
backend/local/read_device_other.go
// Device reading functions //go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris package local import "os" // readDevice turns a valid os.FileInfo into a device number, // returning devUnset if it fails. func readDevice(fi os.FileInfo, oneFileSystem bool) uint64 { return devUns...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/metadata_bsd.go
backend/local/metadata_bsd.go
//go:build darwin || freebsd || netbsd package local import ( "fmt" "os" "syscall" "time" "github.com/rclone/rclone/fs" ) // Read the time specified from the os.FileInfo func readTime(t timeType, fi os.FileInfo) time.Time { stat, ok := fi.Sys().(*syscall.Stat_t) if !ok { fs.Debugf(nil, "didn't return Stat_...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false
rclone/rclone
https://github.com/rclone/rclone/blob/5f4e4b1a200708f5f36999a9d289823b742e4fd3/backend/local/read_device_unix.go
backend/local/read_device_unix.go
// Device reading functions //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris package local import ( "os" "syscall" "github.com/rclone/rclone/fs" ) // readDevice turns a valid os.FileInfo into a device number, // returning devUnset if it fails. func readDevice(fi os.FileInfo, on...
go
MIT
5f4e4b1a200708f5f36999a9d289823b742e4fd3
2026-01-07T08:35:43.525317Z
false