one extra slash check!

nix
Ted Moore 4 years ago
parent c10b879936
commit 3ba5c4bf3e

@ -2,6 +2,6 @@ FluidFilesPath {
*new { *new {
arg fileName; arg fileName;
fileName = fileName ? ""; fileName = fileName ? "";
^("%/../AudioFiles/".format(File.realpath(FluidDataSet.class.filenameSymbol).dirname) +/+ fileName); ^("%/../AudioFiles".format(File.realpath(FluidDataSet.class.filenameSymbol).dirname) +/+ fileName);
} }
} }

@ -1,6 +1,7 @@
( (
// should all return the same path: // should all return the same path:
(FluidFilesPath()++"Nicol-LoopE-M.wav").postln; (FluidFilesPath()++"Nicol-LoopE-M.wav").postln;
(FluidFilesPath()+/+"Nicol-LoopE-M.wav").postln;
FluidFilesPath("Nicol-LoopE-M.wav").postln; FluidFilesPath("Nicol-LoopE-M.wav").postln;
FluidFilesPath("/Nicol-LoopE-M.wav").postln; FluidFilesPath("/Nicol-LoopE-M.wav").postln;
) )

Loading…
Cancel
Save