Fluid.dataset~ write message needs conformpath (Could not open file for writing)

sending a file path coming from a savedialog object to a fluild.dataset~ doesn’t work :

“Macintosh HD:/Users/mathieuchamagne/Dropbox/test/normalised.json”
fluid.dataset~: Could not open file for writing

the path needs to be processed by [conformpath] with ‘pathtype boot’ :

/Users/mathieuchamagne/Dropbox/test/normalised.json

(same issue with fluid.labelset~)


----------begin_max5_patcher----------
695.3oc0WErTjBCD8L7UjJmmcJBP.zq69WrkkU.hiwBRnRB5XY49sujDPEmQ
Mxfa4dAljzIc+dcmG87PX.rTrmpffyA+FDD7PXPfcJyDAiiCfsj8UMDk0LHm
dmn7F3F2RZ5dsc5NIsixqA2IYZ5zp79VFugps6D87jhd8qmkUaOlgi9G4Sa2
Yl99NpK.gPvEiK0QzUWy36tTRqztUSRi1FsADmlXdghbih2FAtvrmGCCMO1b
Zv7pldV81Zhlnn5+.Zu+WteNYXCiSqD8bq0wSAqjpnbMQyD7KOpEdPTwGRTE
uMQswSxJO075rLyyD7B4pxdsVvOsjdJ7ofURZoZp7RJmT1XQTzagyRBemO37
rybkFSOWyRBE4VZMizH18IXfjCY.76mM23OZQIiWAx9JtBzHH01H4jx2IvEm
SSyRcnL17xMXwfrkpTjczC0yH5qMAEnTHzGEpw9B0rnkInMgyLKNK9RRlUB9
UBYqAsvSRKJ6cqdYF4NOjihJVCs6JQa6fd6GHdeN3mh9lZ.WnAhgucAth0PA
Crg8aXrmKv8WwtrubPwRwpmoZMm6hlY6rcuqRzHjNFAYXfnsnTDJOKMOBWTD
mfeiovnmH2WjRhgybUuhprNXVHejjABYkOhyvaGNcD1lLvqbg2J1u.tXY2uP
ipkEQe2ZXXYWAw4KuefQtHFk8Moe.bxWSCAn+iZH.c5cDf7pi.6IXKEe0eEv
dhl4myBJQurZJVFU+AQOEG0T0f9osc2WXStylixy95mbO7SwJ3Gymr+PGksB
NB+OxOod3G7J3mDevSzZPbE9fn0nlC6ClL2UOcOg7wSGVe6t9R55tkJUiVac
xfb0MtFJJ1XGx3tgX6PI8V1j8VEUHQNHfnGTO5k1.CtOy8GyfshZpj2yrJXg
F3M3RqTHePcV0QbHwpXF9X3eA71BR+M
-----------end_max5_patcher-----------

…or is it an issue with path containing space ?
(“Macintosh HD:/…” )

That is normal indeed. No issues with space, but it needs to be a valid path - if you option-click on a file on the finder, and copy item as path, you will get the right format. I put everything in quotation marks because I have spaces, and French accents everywhere :slight_smile:

It’s just a bit counter-intuitive, because all vanilla Max external that can write files accept this kind of path

“Macintosh HD:/Users/mathieuchamagne/Dropbox/test/normalised.json”

fluild.dataset~ & fluid.labelset~ accept this path to read a file

read “Macintosh HD:/Users/mathieuchamagne/Dropbox/test/normalised.json”

but only for writing it needs to be

write /Users/mathieuchamagne/Dropbox/test/normalised.json

@weefuzzy is there a particular reason for this? I never use the other format so I don’t know…

The read paths are intercepted before going back to the cross platform code so that we can handle lookups on the search path etc. I guess we could do the same for write and run stuff through conformpath via the API, if someone puts it as an enhancement on GH.

2 Likes

thanks for that. I was indeed asking about the difference between the file read and the file write code… it seems to be a valid improvement so if @MathieuChamagne doesn’t do the ticket, I’ll do it later today.

1 Like