Developers Manual > Cocos2d-JS > Features Of Cocos2d-JS > CCFileUtils in JavaScript

CCFileUtils in JavaScript

version: cocos2d-js v3.x
update: Updated almost 3 years ago

in Web Browsers

CCFileUtils.js has been removed in web engine because the native file search functionalities are not possible to implement for web engine.

  • The function to get binary file has been moved to cc.loader.loadBinary(async) and cc.loader.loadBinarySync(sync).
    And we hope you not to use cc.loader.loadBinarySync, because it's deprecated.

  • All operations about resources have been moved to cc.loader.

  • All operations about file path have been moved to cc.path.

on Native, JavaScript bindings

In JSB, as it's still useful, cc.fileUtils have been renamed to jsb.fileUtils to let user know it's only available in native platform.

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.