GithubHelp home page GithubHelp logo

Comments (5)

levlam avatar levlam commented on April 30, 2024

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

from td.

Qasemt avatar Qasemt commented on April 30, 2024

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

from td.

laitianxu avatar laitianxu commented on April 30, 2024

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

from td.

levlam avatar levlam commented on April 30, 2024

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

from td.

levlam avatar levlam commented on April 30, 2024

@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?

from td.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.