mirror of
https://github.com/rclone/rclone.git
synced 2025-02-08 14:39:44 +01:00
uptobox: ensure files and folders show the modtime configured by --default-time #6986
This commit is contained in:
parent
6001f05a12
commit
0468375054
@ -923,7 +923,8 @@ func (o *Object) Remote() string {
|
|||||||
// It attempts to read the objects mtime and if that isn't present the
|
// It attempts to read the objects mtime and if that isn't present the
|
||||||
// LastModified returned in the http headers
|
// LastModified returned in the http headers
|
||||||
func (o *Object) ModTime(ctx context.Context) time.Time {
|
func (o *Object) ModTime(ctx context.Context) time.Time {
|
||||||
return time.Now()
|
ci := fs.GetConfig(ctx)
|
||||||
|
return time.Time(ci.DefaultTime)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Size returns the size of an object in bytes
|
// Size returns the size of an object in bytes
|
||||||
|
@ -84,7 +84,8 @@ To copy a local directory to an Uptobox directory called backup
|
|||||||
|
|
||||||
### Modified time and hashes
|
### Modified time and hashes
|
||||||
|
|
||||||
Uptobox supports neither modified times nor checksums.
|
Uptobox supports neither modified times nor checksums. All timestamps
|
||||||
|
will read as that set by `--default-time`.
|
||||||
|
|
||||||
### Restricted filename characters
|
### Restricted filename characters
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user