diff --git a/assets/gap.js b/assets/gap.js
index 3b481fb9..871efb9f 100644
--- a/assets/gap.js
+++ b/assets/gap.js
@@ -308,27 +308,31 @@ var Device = {
}
},
- storage: {
+ file: {
result: "",
- testSDCard: function(){
- Device.storage.result = window.DroidGap.testSaveLocationExists();
- return Device.storage.result;
+ testSaveLocationExists: function(){
+ Device.file.result = window.DroidGap.testSaveLocationExists();
+ return Device.file.result;
},
- testExistence: function(file){
- Device.storage.result = window.DroidGap.testFileExists(file);
- return Device.storage.result;
+ testFileExists: function(file){
+ Device.file.result = window.DroidGap.testFileExists(file);
+ return Device.file.result;
},
- delFile: function(file){
- Device.storage.result = window.DroidGap.deleteFile(file);
- return Device.storage.result;
+ testDirectoryExists: function(file){
+ Device.file.result = window.DroidGap.testFileExists(file);
+ return Device.file.result;
},
- delDir: function(file){
- Device.storage.result = window.DroidGap.deleteDirectory(file);
- return Device.storage.result;
+ deleteFile: function(file){
+ Device.file.result = window.DroidGap.deleteFile(file);
+ return Device.file.result;
},
- createDir: function(file){
- Device.storage.result = window.DroidGap.createDirectory(file);
- return Device.storage.result;
+ deleteDirectory: function(file){
+ Device.file.result = window.DroidGap.deleteDirectory(file);
+ return Device.file.result;
+ },
+ createDirectory: function(file){
+ Device.file.result = window.DroidGap.createDirectory(file);
+ return Device.file.result;
}
},
diff --git a/assets/index.html b/assets/index.html
index 1f16d66a..9fdc6479 100644
--- a/assets/index.html
+++ b/assets/index.html
@@ -111,19 +111,22 @@ http = function(func)
fileManagement = function(x){
if (x == 'testSDCard'){
- $('file_status').value = Device.storage.testSDCard();
+ $('file_status').value = Device.file.testSaveLocationExists();
}else
- if (x == 'testExistence'){
- $('file_status').value = Device.storage.testExistence($('checkfile').value);
+ if (x == 'testFileExists'){
+ $('file_status').value = Device.file.testFileExists($('checkfile').value);
+ }else
+ if (x == 'testDirectoryExists'){
+ $('file_status').value = Device.file.testDirectoryExists($('checkdir').value);
}else
if (x == 'createDir'){
- $('file_status').value = Device.storage.createDir($('createfile').value);
+ $('file_status').value = Device.file.createDirectory($('createfile').value);
}else
if (x == 'delFile'){
- $('file_status').value = Device.storage.delFile($('delfile').value);
+ $('file_status').value = Device.file.deleteFile($('delfile').value);
}else
if (x == 'delDir'){
- $('file_status').value = Device.storage.delDir($('deldir').value);
+ $('file_status').value = Device.file.deleteDirectory($('deldir').value);
}
}
@@ -191,7 +194,7 @@ addLoadEvent(initGap);
Audio...
Notification...
HTTP...
- External Storage
+ File IO...
Phone Info...
About
@@ -341,19 +344,23 @@ addLoadEvent(initGap);
-
-
Storage Management
+
+
file IO