1 /*jslint 2 browser: true, 3 nomen: false, 4 debug: true, 5 forin: true, 6 undef: true, 7 white: false, 8 onevar: false 9 */ 10 var sc, DOMParser; 11 12 13 /** 14 * Gets the contents of a file 15 * @platformstub 16 * @member sc.helpers 17 */ 18 sc.helpers.getFileContents = function(url) {}; 19 20 21 22 /** 23 * sets the file contents 24 * @platformstub 25 * @member sc.helpers 26 */ 27 sc.helpers.setFileContents = function(url, content, serialize) {}; 28 29 30 31 32 /** 33 * does fileurl exist 34 * @platformstub 35 * @member sc.helpers 36 */ 37 sc.helpers.fileExists = function (url) {}; 38 39 /** 40 * is given fileurl a file 41 * @platformstub 42 * @member sc.helpers 43 */ 44 sc.helpers.isFile = function (url) {}; 45 46 /** 47 * is given fileurl a directory 48 * @platformstub 49 */ 50 sc.helpers.isDirectory = function (url) {}; 51 52 53 /** 54 * resolve a path against the given url 55 * @platformstub 56 * @member sc.helpers 57 */ 58 sc.helpers.resolvePath = function(url, rel_path) {}; 59 60 /** 61 * Returns the native file object 62 * @platformstub 63 * @member sc.helpers 64 */ 65 sc.helpers.getFileObject = function(url) {}; 66 67 /** 68 * copy a file 69 * @platformstub 70 * @member sc.helpers 71 */ 72 sc.helpers.copyFile = function(url, dest_url) {}; 73 74 /** 75 * move a file 76 * @platformstub 77 * @member sc.helpers 78 */ 79 sc.helpers.moveFile = function(url, dest_url) {}; 80 81 /** 82 * delete a file 83 * @platformstub 84 * @member sc.helpers 85 */ 86 sc.helpers.deleteFile = function (url) {}; 87 88 /** 89 * delete a directory 90 * @platformstub 91 * @member sc.helpers 92 */ 93 sc.helpers.deleteDirectory = function (url) {}; 94 95 /** 96 * make a new directory 97 * @platformstub 98 * @member sc.helpers 99 */ 100 sc.helpers.createDirectory = function (url) {}; 101 102 /** 103 * make a temporary file 104 * @platformstub 105 * @member sc.helpers 106 */ 107 sc.helpers.createTempFile = function() { 108 109 }; 110 111 /** 112 * make a temporary directory 113 * @platformstub 114 * @member sc.helpers 115 */ 116 sc.helpers.createTempDirectory = function() { 117 118 }; 119 120 121 122 /** 123 * initializes a file at the given location. set overwrite to true 124 * to clear out an existing file. 125 * returns true or false 126 * @platformstub 127 * @member sc.helpers 128 */ 129 sc.helpers.initFile = function (url) {}; 130 sc.helpers.init_file = sc.helpers.initFile; 131 132 133 134 /** 135 * returns the file URL for the app storage directory 136 * @platformstub 137 * @member sc.helpers 138 */ 139 sc.helpers.getAppStorageDir = function() {}; 140 sc.helpers.getAppStoreDir = sc.helpers.getAppStorageDir; 141 142 143 /** 144 * get the application's directory 145 * @platformstub 146 * @member sc.helpers 147 */ 148 sc.helpers.getAppDir = function() {}; 149