Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: TouchBar Help. Creating Folder.
is a discussion within theiPhone / iPod Touch SDK | Development Discussion
forums, a part of the3rd Party Apps For iPhone | iPod Touch
section;I am the developer of TouchBar, a native bar drinks app. And i am seeking help from anyone who can take a second to help me. My problem is that
...-
06-15-2008, 02:20 PM #1
TouchBar Help. Creating Folder.
I am the developer of TouchBar, a native bar drinks app.
And i am seeking help from anyone who can take a second to help me.
My problem is that i need my application to create a folder if it does ot find it.
example.
I need /var/mobile/Library/TouchBar/
and if it dosent find it (WITCH IT SHOULDENT AT FIRST START)
create it.
MY APP IS WRITING WITH JIGGY. THEREFOR USING JAVASCRIPT.
if anyone can help, please.
-
06-15-2008, 09:43 PM #2
Seems like you should be able to use the FileManager plugin to do everything you need?
Plugins.load( "FileManager");
if (!FileManager.directoryExists('/var/mobile/Library/TouchBar')) {
FileManager.createDirectory('/var/mobile/Library/TouchBar');
}
Note that referencing /var/mobile directly is not a good idea - you should be doing
var myDir = Application.userLibraryDirectory + '/TouchBar';
if (!FileManager.directoryExists(myDir)) {
FileManager.createDirectory(myDir);
}
Also note: I don't use Jiggy, so this is all speculation...
-
06-16-2008, 11:51 AM #3
thanks.
worked




LinkBack URL
About LinkBacks
Reply With Quote