You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to synchronize my local files with different cloud storages. So, for this I would like to have some mechanism to check if a file in the cloud differs from my file. Unfortunately, I could not find any appropriate feature in libcloud.
I propose using the same hash method for all storage drivers and make it public, so anyone can check if file is the same in a local system and in any cloud.
However, this approach doesn't allow to determine where the file was changed, so, alternatively, we can use modify_time from os.stat(file).st_mtime or, maybe, you have a better idea.
The text was updated successfully, but these errors were encountered:
If you choose hash option, it seems pretty easy, because most of the providers use data_hash from StorageDriver._upload_object, except LocalDriver, which uses md5(modify_time), and, maybe, some else.
Feature Request
I want to synchronize my local files with different cloud storages. So, for this I would like to have some mechanism to check if a file in the cloud differs from my file. Unfortunately, I could not find any appropriate feature in libcloud.
I propose using the same hash method for all storage drivers and make it public, so anyone can check if file is the same in a local system and in any cloud.
However, this approach doesn't allow to determine where the file was changed, so, alternatively, we can use modify_time from
os.stat(file).st_mtime
or, maybe, you have a better idea.The text was updated successfully, but these errors were encountered: