Forums

OverviewFelgo 2 Support (Qt 5) › DownloadableResource change _package name

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #20262

    Bas

    hi,

    is it posible to change the directory name “_package”?

    or to extend the path set by storageLocation to something else?

    cheers,

    Bas

    #20300

    Günther
    Felgo Team

    Hi,

    you can have a look at the storagePath property for custom storage locations.

    Best,
    Günther

    #20602

    Bas

    hi,

    i do not understand storagePath, why is it a url?

     

    when i use a path on my mac it stores the downloaded package into the app resource

     

    thanx,

    Bas

    #20605

    Günther
    Felgo Team

    The url type is used in QML to refer to remote or local file assets. For example, the source property of AppImage is also an url type.

    Similar to the source for images, you can either specify relative paths, or absolute file paths.

    Best,
    Günther from Felgo

    #20606

    Bas

    Ok but i can not write to a local directory with the storagePath property.

    Is it even possible to write to a path without the Package, i could not figure this out.

    I have some extra directories in the apppath and want to store a file there.

    Can it be done?

    #20685

    Günther
    Felgo Team

    The DownloadableResource always uses the _package subfolder when handling downloaded files.

    The default storagePath uses FileUtils.AppDataLocation, which uses a platform-specific directory where app-related files can be put as long as the app is installed. This is where files created at app runtime can be stored.

    Best,
    Günther

Viewing 6 posts - 1 through 6 (of 6 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support