Change the file operation API for ChromeApp