/** * Extract a file system bundle to a directory in the * local file system on the device/emulator. * @param handle The resource handle of the bundled * file system. Bundles are created with the Bundle tool * that comes with MoSync. * @param destinationPath The path of the directory where * the file system will be extracted. */ bool FileUtil::extractFileSystem( MAHandle handle, const MAUtil::String& destinationPath) { setCurrentFileSystem(handle, 0); int result = MAFS_extractCurrentFileSystem(destinationPath.c_str()); freeCurrentFileSystem(); return 1 == result; }
void setCurrentFileSystem(MAHandle fileSystem, int caseSensitive) { freeCurrentFileSystem(); buildDirectoryTree(fileSystem); sCurrentFileSystem = fileSystem; sCaseSensitive = caseSensitive; }