Check if a file exists locally using JavaScript only
Your question is ambiguous, so there are multiple possible answers depending on what you’re really trying to achieve. If you’re developping as I’m guessing a desktop application using Titanium, then you can use the FileSystem module’s getFile to get the file object, then check if it exists using the exists method. Here’s an example taken … Read more