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
Here is my problematic flow with TdApi.OptimizeStorage:
-- Client call TdApi.DownloadFile to download a remote file (just partial file, not completed)
-- Td create a temp file
-- Then I call TdApi.OptimizeStorage(size=0, count =0, immunity_delay=1)
-- Wail and ensure the temp has been deleted from the system.
-- Client call TdApi.GetRemoteFile with the same fileId
-- Td return result with the same path (but deleted).
For partially downloaded files TDLib doesn't know the remote file for which the file is a local copy and can't update information about the file. Given, there is no way to track all file changes and deletions, the local file path can become invalid in many ways. The app is supposed to call downloadFile before using the file to ensure that the file is present and unchanged.
Here is my problematic flow with TdApi.OptimizeStorage:
Result Flows:
Expected result: TdApi.GetRemoteFile should not return the path if it is not existed (deleted by TdApi.OptimizeStorage).
What can I do in this case?
The text was updated successfully, but these errors were encountered: