Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to change files directory without need in TDLib restart #380

Open
vkryl opened this issue Oct 3, 2018 · 1 comment
Open

Ability to change files directory without need in TDLib restart #380

vkryl opened this issue Oct 3, 2018 · 1 comment

Comments

@vkryl
Copy link
Contributor

vkryl commented Oct 3, 2018

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).

@levlam
Copy link
Contributor

levlam commented Oct 9, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants