pxt-filesystem icon indicating copy to clipboard operation
pxt-filesystem copied to clipboard

Program Error: pxsim.files.createDirectory is not a function

Open scottaubrey opened this issue 6 years ago • 3 comments

While using the filesystem package in the I get an error trying to use settings save number in the Blockeditor or files.settingsSaveNumber in the javascript editor. The error message is:

Program Error: pxsim.files.createDirectory is not a function

scottaubrey avatar Apr 15 '18 09:04 scottaubrey

me 2

ljcucc avatar Jun 05 '18 17:06 ljcucc

simulator is using another implementation: https://github.com/Microsoft/pxt-microbit/blob/master/sim/state/filesystem.ts, its namespace is "pxsim.files"

but this repository use another block with same "files" namespace, so there is some conflicts here. Current blocks: https://github.com/Microsoft/pxt-filesystem/blob/master/shims.d.ts

xuefengedu avatar Jul 18 '18 09:07 xuefengedu

me 2.

I don't know if it's related, but trying to run the line in the simulator:

let file = files.open("data.txt")

the error message is: "object doesn't support property or method fsOpen"

SERWare avatar Sep 06 '18 12:09 SERWare