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

change location of folders [documents,music....] #43

Closed
Qasemt opened this issue Feb 6, 2018 · 5 comments
Closed

change location of folders [documents,music....] #43

Qasemt opened this issue Feb 6, 2018 · 5 comments

Comments

@Qasemt
Copy link

Qasemt commented Feb 6, 2018

hi
how do I change the location of folders (documents,music,photos,profile_photos,.....) ?

@levlam
Copy link
Contributor

levlam commented Feb 6, 2018

Currently, there is no way to change their location except specifying different files_directory in setTdlibParameters.

@Qasemt
Copy link
Author

Qasemt commented Feb 20, 2018

We hope، you will Add this feature to tdlib :-),we need set parameters before launch per instance of client,so that each client has a special address folder

instance of Client-1 
   .. /client1/music
   ../client1/photo
   ../client1/td.binlog
   
   
instance of Client-2 
   .. /client2/music
   ../client2/photo
   ../client2/td.binlog

Thank you so much

@laitianxu
Copy link

hi Use TdApi.DownloadFile to download images to directory photos, Under what circumstances are images in the directory deleted,Is it the capacity of photos or the number of images,Is there any way to keep the image from being deleted

@levlam
Copy link
Contributor

levlam commented Jan 6, 2020

@laitianxu This is up to the application using TDLib. If tdlibParameters.use_storage_optimizer is false, then files are deleted only by explicit calls to optimizeStorage and deleteFile. In optimizeStorage application can choose any combination of total file size, total number of files, last access time, file creation time, file types, source chats to specify which files needs to be deleted.

@levlam
Copy link
Contributor

levlam commented Jan 6, 2020

@Qasemt "each client has a special address folder" is how database_directory and files_directory work now. Why they aren't sufficient for your needs?

@levlam levlam closed this as completed Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants