2014-03-10 14:04:58 +08:00
--------------------------------
-- @module FileUtils
2014-07-02 10:15:26 +08:00
-- @parent_module cc
2014-03-18 15:55:30 +08:00
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Returns the fullpath for a given filename.<br>
-- First it will try to get a new filename from the "filenameLookup" dictionary.<br>
-- If a new filename can't be found on the dictionary, it will use the original filename.<br>
-- Then it will try to obtain the full path of the filename using the FileUtils search rules: resolutions, and search paths.<br>
-- The file search is based on the array element order of search paths and resolution directories.<br>
-- For instance:<br>
-- We set two elements("/mnt/sdcard/", "internal_dir/") to search paths vector by setSearchPaths,<br>
-- and set three elements("resources-ipadhd/", "resources-ipad/", "resources-iphonehd")<br>
-- to resolutions vector by setSearchResolutionsOrder. The "internal_dir" is relative to "Resources/".<br>
-- If we have a file named 'sprite.png', the mapping in fileLookup dictionary contains `key: sprite.png -> value: sprite.pvr.gz`.<br>
-- Firstly, it will replace 'sprite.png' with 'sprite.pvr.gz', then searching the file sprite.pvr.gz as follows:<br>
-- /mnt/sdcard/resources-ipadhd/sprite.pvr.gz (if not found, search next)<br>
-- /mnt/sdcard/resources-ipad/sprite.pvr.gz (if not found, search next)<br>
-- /mnt/sdcard/resources-iphonehd/sprite.pvr.gz (if not found, search next)<br>
-- /mnt/sdcard/sprite.pvr.gz (if not found, search next)<br>
-- internal_dir/resources-ipadhd/sprite.pvr.gz (if not found, search next)<br>
-- internal_dir/resources-ipad/sprite.pvr.gz (if not found, search next)<br>
-- internal_dir/resources-iphonehd/sprite.pvr.gz (if not found, search next)<br>
-- internal_dir/sprite.pvr.gz (if not found, return "sprite.png")<br>
-- If the filename contains relative path like "gamescene/uilayer/sprite.png",<br>
-- and the mapping in fileLookup dictionary contains `key: gamescene/uilayer/sprite.png -> value: gamescene/uilayer/sprite.pvr.gz`.<br>
-- The file search order will be:<br>
-- /mnt/sdcard/gamescene/uilayer/resources-ipadhd/sprite.pvr.gz (if not found, search next)<br>
-- /mnt/sdcard/gamescene/uilayer/resources-ipad/sprite.pvr.gz (if not found, search next)<br>
-- /mnt/sdcard/gamescene/uilayer/resources-iphonehd/sprite.pvr.gz (if not found, search next)<br>
-- /mnt/sdcard/gamescene/uilayer/sprite.pvr.gz (if not found, search next)<br>
-- internal_dir/gamescene/uilayer/resources-ipadhd/sprite.pvr.gz (if not found, search next)<br>
-- internal_dir/gamescene/uilayer/resources-ipad/sprite.pvr.gz (if not found, search next)<br>
-- internal_dir/gamescene/uilayer/resources-iphonehd/sprite.pvr.gz (if not found, search next)<br>
-- internal_dir/gamescene/uilayer/sprite.pvr.gz (if not found, return "gamescene/uilayer/sprite.png")<br>
-- If the new file can't be found on the file system, it will return the parameter filename directly.<br>
-- This method was added to simplify multiplatform support. Whether you are using cocos2d-js or any cross-compilation toolchain like StellaSDK or Apportable,<br>
-- you might need to load different resources for a given file in the different platforms.<br>
-- since v2.1
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] fullPathForFilename
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string filename
2014-03-10 14:04:58 +08:00
-- @return string#string ret (return value: string)
--------------------------------
2017-01-13 14:04:11 +08:00
-- @overload self, string, function
-- @overload self, string
-- @function [parent=#FileUtils] getStringFromFile
2014-03-10 14:04:58 +08:00
-- @param self
2017-01-13 14:04:11 +08:00
-- @param #string path
-- @param #function callback
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Sets the filenameLookup dictionary.<br>
2016-07-04 09:40:35 +08:00
-- param filenameLookupDict The dictionary for replacing filename.<br>
2014-09-02 13:45:07 +08:00
-- since v2.1
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] setFilenameLookupDictionary
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #map_table filenameLookupDict
2015-01-21 17:33:26 +08:00
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
2014-07-24 22:23:49 +08:00
--------------------------------
2017-01-13 14:04:11 +08:00
-- @overload self, string, function
-- @overload self, string
-- @function [parent=#FileUtils] removeFile
2014-07-24 22:23:49 +08:00
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string filepath
2017-01-13 14:04:11 +08:00
-- @param #function callback
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Checks whether the path is an absolute path.<br>
-- note On Android, if the parameter passed in is relative to "assets/", this method will treat it as an absolute path.<br>
-- Also on Blackberry, path starts with "app/native/Resources/" is treated as an absolute path.<br>
2015-03-24 16:35:26 +08:00
-- param path The path that needs to be checked.<br>
-- return True if it's an absolute path, false if not.
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] isAbsolutePath
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string path
2014-03-10 14:04:58 +08:00
-- @return bool#bool ret (return value: bool)
2014-07-24 22:23:49 +08:00
--------------------------------
2017-01-13 14:04:11 +08:00
-- @overload self, string, string, string, function
2015-08-14 11:34:30 +08:00
-- @overload self, string, string, string
2017-01-13 14:04:11 +08:00
-- @overload self, string, string
-- @overload self, string, string, function
2015-08-14 11:34:30 +08:00
-- @function [parent=#FileUtils] renameFile
2014-07-24 22:23:49 +08:00
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string path
-- @param #string oldname
-- @param #string name
2017-01-13 14:04:11 +08:00
-- @param #function callback
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2015-08-14 11:34:30 +08:00
2017-03-06 18:28:58 +08:00
--------------------------------
-- Get default resource root path.
-- @function [parent=#FileUtils] getDefaultResourceRootPath
-- @param self
-- @return string#string ret (return value: string)
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Loads the filenameLookup dictionary from the contents of a filename.<br>
-- note The plist file name should follow the format below:<br>
-- code<br>
-- <?xml version="1.0" encoding="UTF-8"?><br>
-- <!DOCTYPE plist PUBLIC "-AppleDTD PLIST 1.0EN" "http:www.apple.com/DTDs/PropertyList-1.0.dtd"><br>
-- <plist version="1.0"><br>
-- <dict><br>
-- <key>filenames</key><br>
-- <dict><br>
-- <key>sounds/click.wav</key><br>
-- <string>sounds/click.caf</string><br>
-- <key>sounds/endgame.wav</key><br>
-- <string>sounds/endgame.caf</string><br>
-- <key>sounds/gem-0.wav</key><br>
-- <string>sounds/gem-0.caf</string><br>
-- </dict><br>
-- <key>metadata</key><br>
-- <dict><br>
-- <key>version</key><br>
-- <integer>1</integer><br>
-- </dict><br>
-- </dict><br>
-- </plist><br>
-- endcode<br>
-- param filename The plist file name.<br>
-- since v2.1<br>
-- js loadFilenameLookup<br>
-- lua loadFilenameLookup
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] loadFilenameLookupDictionaryFromFile
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string filename
2015-01-21 17:33:26 +08:00
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-07-10 17:11:50 +08:00
-- Checks whether to pop up a message box when failed to load an image.<br>
2015-03-24 16:35:26 +08:00
-- return True if pop up a message box when failed to load an image, false if not.
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] isPopupNotify
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
2015-03-24 16:35:26 +08:00
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] getValueVectorFromFile
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string filename
2014-03-10 14:04:58 +08:00
-- @return array_table#array_table ret (return value: array_table)
2014-05-22 16:08:54 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Gets the array of search paths.<br>
2017-03-06 18:28:58 +08:00
-- return The array of search paths which may contain the prefix of default resource root path. <br>
-- note In best practise, getter function should return the value of setter function passes in.<br>
-- But since we should not break the compatibility, we keep using the old logic. <br>
-- Therefore, If you want to get the original search paths, please call 'getOriginalSearchPaths()' instead.<br>
2014-09-02 13:45:07 +08:00
-- see fullPathForFilename(const char*).<br>
-- lua NA
2014-05-22 16:08:54 +08:00
-- @function [parent=#FileUtils] getSearchPaths
-- @param self
-- @return array_table#array_table ret (return value: array_table)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-07-10 17:11:50 +08:00
-- write a ValueMap into a plist file<br>
-- param dict the ValueMap want to save<br>
-- param fullPath The full path to the file you want to save a string<br>
-- return bool
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] writeToFile
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #map_table dict
-- @param #string fullPath
2014-03-10 14:04:58 +08:00
-- @return bool#bool ret (return value: bool)
2017-03-06 18:28:58 +08:00
--------------------------------
-- Gets the original search path array set by 'setSearchPaths' or 'addSearchPath'.<br>
-- return The array of the original search paths
-- @function [parent=#FileUtils] getOriginalSearchPaths
-- @param self
-- @return array_table#array_table ret (return value: array_table)
2016-11-21 15:00:00 +08:00
--------------------------------
-- Gets the new filename from the filename lookup dictionary.<br>
-- It is possible to have a override names.<br>
-- param filename The original filename.<br>
-- return The new filename after searching in the filename lookup dictionary.<br>
-- If the original filename wasn't in the dictionary, it will return the original filename.
-- @function [parent=#FileUtils] getNewFilename
-- @param self
-- @param #string filename
-- @return string#string ret (return value: string)
2017-03-15 16:23:50 +08:00
--------------------------------
-- List all files in a directory.<br>
-- param dirPath The path of the directory, it could be a relative or an absolute path.<br>
-- return File paths in a string vector
-- @function [parent=#FileUtils] listFiles
-- @param self
-- @param #string dirPath
-- @return array_table#array_table ret (return value: array_table)
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Converts the contents of a file to a ValueMap.<br>
2015-03-24 16:35:26 +08:00
-- param filename The filename of the file to gets content.<br>
-- return ValueMap of the file contents.<br>
2014-09-02 13:45:07 +08:00
-- note This method is used internally.
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] getValueMapFromFile
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string filename
2014-03-10 14:04:58 +08:00
-- @return map_table#map_table ret (return value: map_table)
2014-08-07 10:40:46 +08:00
--------------------------------
2017-01-13 14:04:11 +08:00
-- @overload self, string, function
-- @overload self, string
-- @function [parent=#FileUtils] getFileSize
2015-07-10 17:11:50 +08:00
-- @param self
-- @param #string filepath
2017-01-13 14:04:11 +08:00
-- @param #function callback
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2015-07-10 17:11:50 +08:00
--------------------------------
-- Converts the contents of a file to a ValueMap.<br>
-- This method is used internally.
2014-08-07 10:40:46 +08:00
-- @function [parent=#FileUtils] getValueMapFromData
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #char filedata
-- @param #int filesize
2014-08-07 10:40:46 +08:00
-- @return map_table#map_table ret (return value: map_table)
2014-07-24 22:23:49 +08:00
--------------------------------
2017-01-13 14:04:11 +08:00
-- @overload self, string, function
-- @overload self, string
-- @function [parent=#FileUtils] removeDirectory
2014-07-24 22:23:49 +08:00
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string dirPath
2017-01-13 14:04:11 +08:00
-- @param #function callback
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-05-22 16:08:54 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Sets the array of search paths.<br>
-- You can use this array to modify the search path of the resources.<br>
-- If you want to use "themes" or search resources in the "cache", you can do it easily by adding new entries in this array.<br>
-- note This method could access relative path and absolute path.<br>
-- If the relative path was passed to the vector, FileUtils will add the default resource directory before the relative path.<br>
-- For instance:<br>
-- On Android, the default resource root path is "assets/".<br>
-- If "/mnt/sdcard/" and "resources-large" were set to the search paths vector,<br>
-- "resources-large" will be converted to "assets/resources-large" since it was a relative path.<br>
-- param searchPaths The array contains search paths.<br>
-- see fullPathForFilename(const char*)<br>
-- since v2.1<br>
-- In js:var setSearchPaths(var jsval);<br>
-- lua NA
2014-05-22 16:08:54 +08:00
-- @function [parent=#FileUtils] setSearchPaths
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #array_table searchPaths
2015-01-21 17:33:26 +08:00
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-05-22 16:08:54 +08:00
2014-07-24 22:23:49 +08:00
--------------------------------
2017-01-13 14:04:11 +08:00
-- @overload self, string, string, function
-- @overload self, string, string
-- @function [parent=#FileUtils] writeStringToFile
2014-07-24 22:23:49 +08:00
-- @param self
2015-07-10 17:11:50 +08:00
-- @param #string dataStr
-- @param #string fullPath
2017-01-13 14:04:11 +08:00
-- @param #function callback
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-05-22 16:08:54 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Sets the array that contains the search order of the resources.<br>
-- param searchResolutionsOrder The source array that contains the search order of the resources.<br>
2015-03-24 16:35:26 +08:00
-- see getSearchResolutionsOrder(), fullPathForFilename(const char*).<br>
2014-09-02 13:45:07 +08:00
-- since v2.1<br>
-- In js:var setSearchResolutionsOrder(var jsval)<br>
-- lua NA
2014-05-22 16:08:54 +08:00
-- @function [parent=#FileUtils] setSearchResolutionsOrder
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #array_table searchResolutionsOrder
2015-01-21 17:33:26 +08:00
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-05-22 16:08:54 +08:00
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Append search order of the resources.<br>
-- see setSearchResolutionsOrder(), fullPathForFilename().<br>
-- since v2.1
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] addSearchResolutionsOrder
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string order
-- @param #bool front
2015-01-21 17:33:26 +08:00
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Add search path.<br>
-- since v2.1
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] addSearchPath
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string path
-- @param #bool front
2015-01-21 17:33:26 +08:00
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
2015-07-10 17:11:50 +08:00
--------------------------------
2017-01-13 14:04:11 +08:00
-- @overload self, array_table, string, function
-- @overload self, array_table, string
-- @function [parent=#FileUtils] writeValueVectorToFile
2015-07-10 17:11:50 +08:00
-- @param self
-- @param #array_table vecData
-- @param #string fullPath
2017-01-13 14:04:11 +08:00
-- @param #function callback
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
--------------------------------
2017-01-13 14:04:11 +08:00
-- @overload self, string, function
-- @overload self, string
-- @function [parent=#FileUtils] isFileExist
2014-03-10 14:04:58 +08:00
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string filename
2017-01-13 14:04:11 +08:00
-- @param #function callback
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-24 16:35:26 +08:00
-- Purges full path caches.
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] purgeCachedEntries
-- @param self
2015-01-21 17:33:26 +08:00
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-24 16:35:26 +08:00
-- Gets full path from a file name and the path of the relative file.<br>
2014-09-02 13:45:07 +08:00
-- param filename The file name.<br>
2016-07-04 09:40:35 +08:00
-- param relativeFile The path of the relative file.<br>
2014-09-02 13:45:07 +08:00
-- return The full path.<br>
-- e.g. filename: hello.png, pszRelativeFile: /User/path1/path2/hello.plist<br>
-- Return: /User/path1/path2/hello.pvr (If there a a key(hello.png)-value(hello.pvr) in FilenameLookup dictionary. )
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] fullPathFromRelativeFile
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string filename
-- @param #string relativeFile
2014-03-10 14:04:58 +08:00
-- @return string#string ret (return value: string)
2015-05-05 09:36:54 +08:00
--------------------------------
-- Windows fopen can't support UTF-8 filename<br>
-- Need convert all parameters fopen and other 3rd-party libs<br>
2016-07-04 09:40:35 +08:00
-- param filenameUtf8 std::string name file for conversion from utf-8<br>
2015-05-05 09:36:54 +08:00
-- return std::string ansi filename in current locale
-- @function [parent=#FileUtils] getSuitableFOpen
-- @param self
-- @param #string filenameUtf8
-- @return string#string ret (return value: string)
2015-07-10 17:11:50 +08:00
--------------------------------
2017-01-13 14:04:11 +08:00
-- @overload self, map_table, string, function
-- @overload self, map_table, string
-- @function [parent=#FileUtils] writeValueMapToFile
2015-07-10 17:11:50 +08:00
-- @param self
-- @param #map_table dict
-- @param #string fullPath
2017-01-13 14:04:11 +08:00
-- @param #function callback
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2015-08-11 16:02:58 +08:00
--------------------------------
-- Gets filename extension is a suffix (separated from the base filename by a dot) in lower case.<br>
-- Examples of filename extensions are .png, .jpeg, .exe, .dmg and .txt.<br>
-- param filePath The path of the file, it could be a relative or absolute path.<br>
-- return suffix for filename in lower case or empty if a dot not found.
-- @function [parent=#FileUtils] getFileExtension
-- @param self
-- @param #string filePath
-- @return string#string ret (return value: string)
2014-12-26 10:40:22 +08:00
--------------------------------
2015-03-24 16:35:26 +08:00
-- Sets writable path.
2014-12-26 10:40:22 +08:00
-- @function [parent=#FileUtils] setWritablePath
-- @param self
-- @param #string writablePath
2015-01-21 17:33:26 +08:00
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-12-26 10:40:22 +08:00
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-24 16:35:26 +08:00
-- Sets whether to pop-up a message box when failed to load an image.
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] setPopupNotify
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #bool notify
2015-01-21 17:33:26 +08:00
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
2014-07-24 22:23:49 +08:00
--------------------------------
2017-01-13 14:04:11 +08:00
-- @overload self, string, function
-- @overload self, string
-- @function [parent=#FileUtils] isDirectoryExist
2014-07-24 22:23:49 +08:00
-- @param self
2017-01-13 14:04:11 +08:00
-- @param #string fullPath
-- @param #function callback
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-12-26 10:40:22 +08:00
--------------------------------
-- Set default resource root path.
-- @function [parent=#FileUtils] setDefaultResourceRootPath
-- @param self
-- @param #string path
2015-01-21 17:33:26 +08:00
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-12-26 10:40:22 +08:00
2014-05-22 16:08:54 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Gets the array that contains the search order of the resources.<br>
-- see setSearchResolutionsOrder(const std::vector<std::string>&), fullPathForFilename(const char*).<br>
-- since v2.1<br>
-- lua NA
2014-05-22 16:08:54 +08:00
-- @function [parent=#FileUtils] getSearchResolutionsOrder
-- @param self
-- @return array_table#array_table ret (return value: array_table)
2014-07-24 22:23:49 +08:00
--------------------------------
2017-01-13 14:04:11 +08:00
-- @overload self, string, function
-- @overload self, string
-- @function [parent=#FileUtils] createDirectory
2014-07-24 22:23:49 +08:00
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string dirPath
2017-01-13 14:04:11 +08:00
-- @param #function callback
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2017-04-21 09:16:25 +08:00
--------------------------------
-- Gets the writable path.<br>
-- return The path that can be write/read a file in
-- @function [parent=#FileUtils] getWritablePath
-- @param self
-- @return string#string ret (return value: string)
2017-03-15 16:23:50 +08:00
--------------------------------
-- List all files recursively in a directory.<br>
-- param dirPath The path of the directory, it could be a relative or an absolute path.<br>
-- return File paths in a string vector
-- @function [parent=#FileUtils] listFilesRecursively
-- @param self
-- @param #string dirPath
-- @param #array_table files
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Destroys the instance of FileUtils.
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] destroyInstance
-- @param self
2015-01-21 17:33:26 +08:00
-- @return FileUtils#FileUtils self (return value: cc.FileUtils)
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Gets the instance of FileUtils.
2014-03-10 14:04:58 +08:00
-- @function [parent=#FileUtils] getInstance
-- @param self
-- @return FileUtils#FileUtils ret (return value: cc.FileUtils)
return nil