B4J Question File.DirAssets and Files Folder in Jar

Fabrice La

Active Member
Licensed User
Longtime User
How to extract files in Files folder from the .jar file ?

B4X:
If Not(File.IsDirectory(File.DirApp,".ndf")) Then
        File.MakeDir(File.DirApp,".ndf")
    End If
    If Not(File.Exists(File.DirApp & "/.ndf","ndf.db3")) Then
       
        File.Copy(File.DirAssets,"ndf.db3",File.DirApp & "/.ndf","ndf.db3")
    End If
 

B4JExplorer

Active Member
Licensed User
Longtime User
Hi,


Is there a similar function that takes only a folder name as a parameter, and tells you whether that folder exists? Like IsDir( "C:\Projects\EODFiles" )?

Or do I need to cut off the last node EODFILES, get the parent folder, and then just use IsDirectory( "C:\Projects", "EODFiles" )?
 
Upvote 0

B4JExplorer

Active Member
Licensed User
Longtime User
Thanks, Erel.

Yes, will start new thread for related questions, with maybe a reference to the related thread. Sorry about that.
 
Upvote 0
Top