"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
azurefiles: improve modtime precision from 1s to 100ns
Nick Craig-Wood4089e5af4822
diff --git a/backend/azurefiles/azurefiles.go b/backend/azurefiles/azurefiles.goindex db0b9262a..d31d6d78f 100644--- a/backend/azurefiles/azurefiles.go+++ b/backend/azurefiles/azurefiles.go@@ -253,10 +253,10 @@ func (f *Fs) Features() *fs.Features {// Precision return the precision of this Fs//-// One second. FileREST API times are in RFC1123 which in the example shows a precision of seconds+// The SMB last write time properties are ISO 8601 with 100 ns (FILETIME) precision// Source: https://learn.microsoft.com/en-us/rest/api/storageservices/representation-of-date-time-values-in-headersfunc (f *Fs) Precision() time.Duration {- return time.Second+ return smbTimePrecision}// Hashes returns the supported hash sets.diff --git a/docs/content/azurefiles.md b/docs/content/azurefiles.mdindex b34b93c11..194f4b157 100644--- a/docs/content/azurefiles.md+++ b/docs/content/azurefiles.md@@ -115,8 +115,8 @@ rclone sync --interactive /home/local/directory remote:dir### Modified time-The modified time is stored as Azure standard `LastModified` time on-files+The modified time is stored as the SMB `LastWriteTime` property on+files. It has a precision of 100 ns.### Performancediff --git a/docs/data/backends/azurefiles.yaml b/docs/data/backends/azurefiles.yamlindex 44f0412ec..1d220dc6a 100644--- a/docs/data/backends/azurefiles.yaml+++ b/docs/data/backends/azurefiles.yaml@@ -27,4 +27,4 @@ features:- WriteMimeTypehashes:- md5-precision: 1000000000+precision: 100