Changes between Version 1 and Version 2 of VFS_Binding
- Timestamp:
- Feb 23, 2008, 8:58:08 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VFS_Binding
v1 v2 4 4 [KEEP IN SYNC WITH TDD AND CODE!] 5 5 6 = = Pyrogenesis Object Model : VFS (Virtual File System) Interface ==6 = Pyrogenesis Object Model : VFS (Virtual File System) Interface = 7 7 8 8 Scope: this documentation only covers the Javascript binding, not VFS itself. … … 10 10 These stateless functions provide basic file system access within the VFS sandbox. Expected use is in map/saved game selection dialogs; more complex tasks should utilize the complete vfs.h native code interface. 11 11 12 == = VFS functions ===12 == VFS functions == 13 13 14 === = buildFileList ====14 === buildFileList === 15 15 Overview:: 16 16 Return an array of pathname strings, one for each matching entry in the specified directory. … … 27 27 28 28 29 === = getFileMTime ====29 === getFileMTime === 30 30 Overview:: 31 31 Return time [seconds since 1970] of the last modification to the specified file. … … 39 39 40 40 41 === = getFileSize ====41 === getFileSize === 42 42 Overview:: 43 43 Return current size of file. … … 51 51 52 52 53 === = readFile ====53 === readFile === 54 54 Overview:: 55 55 Return file contents in a string. … … 63 63 64 64 65 === = readFileLines ====65 === readFileLines === 66 66 Overview:: 67 67 Return file contents as an array of lines.