B4J Question Retrieving file types?

techknight

Well-Known Member
Licensed User
Longtime User
How would I go about getting the file types of each file detected by File.ListFiles?

I know there is a test to see if a file is a "Directory" or not, but I was wondering if there is an easy way to distinguish "Video" files from "Image" files, or "Text" files, etc.

I cant always rely on the file extension, so I am curios.

any ideas?
 

DonManfred

Expert
Licensed User
Longtime User
My sidenote was for the situation where you distribute a Class so anyone other can use it.

If you compile the class to a library or publish the class-source you need to describe the dependency needed. Tell the people that they need a specific #additionaljar line in his main class...

If you do not publish the class (lirary or class-file) then you do not need this description for sure.
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
Ohhh I see. No this system is 100% proprietary to the app itself. I am building each functionality of the App into its own class so its easier to update code across programs, etc.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…