Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

controllare che ci sia un file in javascript

var homeDir = Titanium.Filesystem.getUserDirectory(); var mySampleFile = Titanium.Filesystem.getFile(homeDir, 'sample.txt'); if (mySampleFile.exists()) { alert('A file called sample.txt already exists in your home directory.'); ... }
Source by js.yocker.com #
 
PREVIOUS NEXT
Tagged: #controllare #che #ci #sia #file #javascript
ADD COMMENT
Topic
Name
2+9 =