Strange problem

Mac OSX specific forum
spacebuddy
Enthusiast
Enthusiast
Posts: 364
Joined: Thu Jul 02, 2009 5:42 am

Strange problem

Post by spacebuddy »

I am using WebgadGet to load a file from a flash stick.

This is the filePath: /Volumes/Test Game/index.html

The Flash stick name has a space in it, when I try to load the file it does not work.

If I rename the flash stick: /Volumes/TestGame/index.html and remove the space it works.

I tried adding chr(34) before and after the file path but that did not work.

Any help would be appreciated.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3944
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Strange problem

Post by wilbert »

Did you try escaping the name ?
/Volumes/Test%20Game/index.html
Windows (x64)
Raspberry Pi OS (Arm64)
spacebuddy
Enthusiast
Enthusiast
Posts: 364
Joined: Thu Jul 02, 2009 5:42 am

Re: Strange problem

Post by spacebuddy »

wilbert wrote:Did you try escaping the name ?
/Volumes/Test%20Game/index.html
Thanks wilbert, that worked great :D
Post Reply