dataframe-js icon indicating copy to clipboard operation
dataframe-js copied to clipboard

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

Open techieshark opened this issue 5 years ago • 1 comments

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):

  • OS: OS X
  • Browser [e.g. chrome, safari]: n/a - using this via Node

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

techieshark avatar Dec 06 '20 22:12 techieshark

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

joeflack4 avatar Aug 24 '21 01:08 joeflack4