Description of problem: VFS API cannot read ($vfs_readAllString) or write ($vfs_write) files on Windows machine. There is probably some problem with uri of command. Version-Release number of selected component (if applicable): 6.2.0.ER3 How reproducible: - Steps to Reproduce: 1. Execute command $vfs_write("file://C:/.../testWriteFile.txt", "This is write test file.", function(a){}); in plugin or directly from js browser console. 2. Open created file Actual results: File does not exist. Expected results: File contains "This is write test file." string. Additional info: -
Looks like the VFS JSNI exposure for plugins?
HI Tomas, The JS API don't access local files. It only stores and read files in workbench repositories. In order to use the API (fstype://branch@repo/pathToFile): $vfs_write("default://master@system/sample.txt", "This is write test file.", function(success){ alert(success); }); ' $vfs_readAllString("default://master@system/sample.txt", function(content) { alert(content); });
Hi Eder, thanks for explanation. My bad. Works on Windows.