Bug? Subfolder of the Files folder

Discussion in 'Bugs & wishlist' started by Alessandro71, Jul 7, 2019.

  1. Alessandro71

    Alessandro71 Member Licensed User

    I have a folder inside the Files folder, with some static data inside
    I can read them with
    File.ReadString(File.DirAssets,  dir & "/" & localizedFileName)
    but when I perform a "export as a Zip", they are not included.

    These files are also not listed in the files tab of the IDE, because if i add them, they will be copied outside of the subfolder.
    Am I using it the wrong way?
  2. LucaMs

    LucaMs Expert Licensed User

    Press Sync.
  3. Erel

    Erel Administrator Staff Member Licensed User

    The IDE currently doesn't fully support nested folders in the Files folder.

    If you are using the folders to organize many files then you can consider putting the files inside a b4xlib file. b4xlibs are simple zip files and they can contain assets files (inside a folder named Files).
    Alessandro71 likes this.
  4. Alessandro71

    Alessandro71 Member Licensed User

    this is clear
    i simply moved the files to the root Files folder, and organized them into an IDE folder
    what about non .bas files that i may need to keep in a backup (like .bat files) that are in the main folder?
    they are not backed-up with the zip export function, and i would prefer not to put them in the Files folder, because they will end up in the assets distributed to the user phones...
  5. Erel

    Erel Administrator Staff Member Licensed User

    The IDE will not treat them as part of the project so it will not "auto backup" them. Manually copy them to the auto backup folder and they will remain there (assuming that they are not being updated very frequently).
  6. Alessandro71

    Alessandro71 Member Licensed User

    The auto backup folder itself isn’t part of the zip obtained with the “export as zip” command, so the will be lost anyway.
    What I’m trying to achieve, is a proven and consistent method to archive/export all files needed for building a project.
    Can you provide and “extras” folder, that will contain non-source files, that won’t be included in the apk, and that is archived as-is with the zip export?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice