deleteFile
An implementation of the API DeleteFile function, which deletes a specified file.
jpal.deleteFile(file,handler);
file is the file name
handler is the function that gets the returned object.
On success, the returned object has deleted set to "absolutely". Otherwise "error" and "errCode" will be set.
Example:
function handleDelete(result) {
if (result.deleted=="absolutely")
alert('Deleted successfully!');
else if (result.error && result.errCode)
alert('Error '+result.errCode+': '+result.error);
}
jpal.deleteFile('test.txt',handleDelete);
Comments (0)
You don't have permission to comment on this page.