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... 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... B4J Question [BANano] BANano.GetFileAsArrayBuffer returning something whilst file does not exist. - Mashiane    Oct 18, 2023 Hi
I am reading a file from the assets folder, with an existing file all is good. Thing is, I specified an non-existing file, so that I can trap if an error happens, yet the "res" returns...
File Does not exist response.
146985... As Object
Dim err As Object
Dim ab As BANanoPromise = BANano.GetFileAsArrayBuffer... B4J Question File.Exists hangs my app momentarily - jmon    May 8, 2018 Hello,
When I check if a folder exists with File.Exists(Dir, "")
if the folder doesn't exist, my app freezes for 5 to 10 seconds.
The folder is on a remote computer.
Is there a way... B4J Question java.nio.file.FileAlreadyExistsException? - KL7000F (first post)    Oct 8, 2022 Hello,
I think it's a problem with my Synology NAS. TMP files are created somewhere there and cause problems.
On a regular SSD/HDD it is possible to create a package.... B4J Question how use "wait for" to check file existing - Erel (first post)    Nov 28, 2019   (1 reaction) You cannot use Wait For unless there is an event that is raised when the file is ready.
You can decrease the sleep interval. Using Sleep is a good solution in this case.... B4J Question B4J File.exists question - DonManfred (first post)    Jan 12, 2019   (1 reaction) the list of files from this folder and check if it is "empty".
dim flist as List = File.ListFiles(folder)
Note that it also contains Files like "." or ".."... Page: 1   2   3   4   5   6   7   |