platform.deferDeleteFile

The 'deferDeleteFile' function accepts a file path that is scheduled to be deleted later on (occurs at exit of the currently working plugin).
deferDeleteFile函数定义myBase退出时删除的文件

  • Prototype: platform.deferDeleteFile(sFilePath, bForcedly);
  • Parameters:
    1. sFilePath: path to a file being deleted at exit;
      需删除的文件名
  • Return Value: undefined;
  • Example:
    platform.deferDeleteFile('/home/username/test/tmp.txt');