Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

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

Open
scottaubrey opened this issue Apr 15, 2018 · 3 comments
Open

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

scottaubrey opened this issue Apr 15, 2018 · 3 comments

Comments

@scottaubrey
Copy link

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

@ljcucc
Copy link

ljcucc commented Jun 5, 2018

me 2

@xuefengedu
Copy link
Contributor

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

@SERWare
Copy link

SERWare commented Sep 6, 2018

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"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants