td icon indicating copy to clipboard operation
td copied to clipboard

Ability to change files directory without need in TDLib restart

Open vkryl opened this issue 6 years ago • 1 comments

Something like SetFilesDirectory (bool move_files). I'm not sure if there'd be any need in such method, if TDLib would have had an ability to set path for each DownloadFile (#379).

This would allow clients to implement download path setting without need in TDLib restart (which may be quite tricky in the UI) & without need in manually moving each folder, if there's such need (clients may not be aware of new or existing TDLib folders used inside filesDirectory).

vkryl avatar Oct 03 '18 18:10 vkryl

It is hard to move all files and it is especially hard to do it when TDLib is run. For example, moving all media from one drive to another can take minutes or hours. Also all file paths known to the client will become invalid, so the app will fail to open any file just after file has been moved and before updateFile is received. There can be also numerous issues with already opened files.

levlam avatar Oct 09 '18 08:10 levlam

SplitSource.php

Grod18rus avatar Nov 19 '22 18:11 Grod18rus