-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brainflow Streaming does not interpret file:/// URI and Outputs to Directory #1104
Comments
Update: Got a bit lost previously, but following a tidy-up of old files, this is further complicated by the fact that the |
These two files should end up next to each other. Is this the case @stellarpower? What's actually happening here is Thanks for sharing this Console Log so that we can see the behavior of this feature on Ubuntu 20. Interested in how it's behaving there with the strings. |
Apologies for the delay; I'd symlinked things to tidy it up a bit on my main machine, so had to confirm on my laptop. I do get two files next to each other:
and then also
as an empty directory. It looks like Brainflow is (I presume correctly) interpreting the File URI and spitting out the file there. But something else along the way has decided that it's a normal path and tried to make the parent directories. I'm only glossing over, but I think this may be your culprit here:
I'm interested if this doesn't cause issues on other platforms though. Just from what I can see in my browser I'd have expected that to behave the same across most OSs. Unless they are interpreting the URI into a path first - wouldn't be too surprised if this happened on Windows, but seems more likely that Darwin and linux would handle the same. Cheers |
Also should go without saying, but to confirm, it's creating this in the PWD. So far it had been confined to the installation directory, as that's where I've mostly been running the GUI from, but I've just seen I have this 'file:' directory in my home folder too, from launching the GUI from the desktop launcher in my application menu. |
I just tried saving BrainFlow CSV to a custom location and it seemed to create a folder and not a file. This should be fixed. Confirmed this issue using Mac. |
Problem
I presume from
generateBrainFlowStreamerFileName()
that the streamer is meant to create a File URI that is then interpreted somewhere along the chain to output at the correct location - be this in Brainflow or in the GUI code/helper libs.Instead I get a directory written into the installation root of the GUI called
file:
, and the other elements of the URI have been interpreted literally - the:w
specifier is included in the directory names; the slashes (including the leading ones as part of the protocol) interpreted as ordinary directory separators. I thus also get a nested tree of where the GUI originally wanted to output my data:This isn't some sort of symlink or bind mount I've set up either; those are ordinary directory entries.
Expected
I'm not sure what default are expected, as I haven't played with the Brainflow streamer. But presumably the intention is to output to
OpenBCI_GUI
under my XDGDocuments
folder as with the CSV/BDF+ recordings.Operating System and Version
Ubuntu 20.04 AMD64
GUI Version
Release 5.1.0
Running standalone app
Standalone
Type of OpenBCI Board
Reproducible with Synthetic
Console Log
The text was updated successfully, but these errors were encountered: