Gmousse / dataframe-js

No Maintenance Intended
https://gmousse.gitbooks.io/dataframe-js/
MIT License
460 stars 38 forks source link

[BUG] fromCSV fails when there is a space in the path #117

Open techieshark opened 3 years ago

techieshark commented 3 years ago

Describe the bug

It seems that fromCSV, when passed a file path to open, will fail if there is a space in the file's path (e.g. if instead of /home/me/dir/file.csv you use /home/me/dir with space/file.csv).

To Reproduce Steps to reproduce the behavior:

  1. call fromCSV(), passing in a path that contains a space

Expected behavior The CSV should open.

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information): n/a

joeflack4 commented 3 years ago

I can corroborate this. Here's my example.

  1. Showing my files in Finder

    Screen Shot 2021-08-23 at 9 17 59 PM
  2. I copied "Fixed Broadband Subscription.csv" and renamed it "1.csv". Reading it works.

    Screen Shot 2021-08-23 at 9 18 14 PM
  3. I tried reading "Fixed Broadband Subscription.csv", and it failed.

    Screen Shot 2021-08-23 at 9 18 34 PM
  4. But if I examine the file in terminal using the exact path I copy/pasted from (3), I am able to examine successfully.

    Screen Shot 2021-08-23 at 9 19 07 PM