B4i Code Snippet File.Exists on Special folder - Star-Dust    Jul 30, 2022   (4 reactions) The need arose within a library to know if there was a Font in the Assets folder. I didn't know if the developer had uploaded the font to the App, but if he didn't, the library would crash. How to do? This was the solution Dim no As NativeObject Dim SpecialFolder As String = no.Initialize("NSBundle").RunMethod("mainBundle", Null).RunMethod("bundlePath", Null).AsString If File.Exists(SpecialFolder,FontFileName) Then '...' End If... B4J Tutorial [BANano] Checking File Existence : (Async Fetch - BANanoFetch Inside BANanoPromise) - Mashiane    Oct 18, 2023 Hi This code is based on a response I got about something else I needed about files, fetch & promise. Anyway.. The code below will check if a file exists and return true / false. I need the file check to trap & report an error if the file does not exist. private Sub FileExist(fn... - checking a file on assets directory. Dim fe As Boolean = BANano.Await(FileExist("./assets/dbFile.sql")) Have Fun.... B4J Code Snippet File.Exists on DirAssets - Star-Dust    Feb 21, 2022   (2 reactions) The need arose within a library to know if there was a Font in the DirAssets. I didn't know if the developer had uploaded the font to the App, but if he didn't, the library would crash. How to do? This was the solution Private Sub FontExist(FileName As String) As Boolean 'If File.Exists(File.DirAssets, "ftypes") Then Return True Dim r As Reflector r.Target = Me...("getResourceAsStream", "/Files/" & FileName, "java.lang.String") If In... B4i Question [Solved] Attempted to insert nil object - File.Exists - hatzisn    Apr 13, 2019 .Exists(File.DirDocuments & Folder, "") = False Then
' File.MakeDir... and call it with this code:
If File.Exists(rp.GetSafeDirDefaultExternal("Guide"... Wish Check if a file exists in a layout. - Filippo    Oct 30, 2023   (1 reaction) Hi,
I wish that the compile checks if all files in the layout filelist are also present in the IDE... a layout, but in the IDE the file was deleted.
Thanks already in advance... B4i Question File.Exists returns False if the file name has a space - Alex_197    Jul 15, 2022 Hi all.
If I try to check if the file exists and the filename has a space like "My Logo.jpg" File.Exists returns False even though the file is really exists. I tried to replace space with %20 - didn't work either.
... B4J Question File.exists() - wrong output? - ilan    Jul 11, 2021 hi
i am running a check if a file exists in the file dirassests folder but I am getting FALSE even though the file exists!
116183
Waiting for debugger to connect...
Program started.
file exists... B4J Question [solved] File Exist on Windows - udg    Feb 18, 2020 right and wrong path for File.Exist, but it seems to work ok in any case.
Here it is my testing... True altough a forwarding slash is used
Log("Image exists : " & File.Exists(DataFolder... Bug? File.Exists Bug? - imbault    Dec 23, 2019 Hi
File.Exists(File.DirApp, "") returns true, bug?
Thanks... B4A Question Mysterious File.exists - Guenter Becker (first post)    Feb 7, 2025 .Exists(File.DirAssets, "BlueTheme.TD")) ' False
Log(File.Exists(File.DirAssets... FileExistsInDirAssets(fname As String) As Boolean 'Tags:
Return File.Exists(File.DirAssets... Page: 1   2   3   4   5   6   |