From 3ba5c4bf3e4221daff7132cc9b59d21b5f720ab0 Mon Sep 17 00:00:00 2001 From: Ted Moore Date: Wed, 8 Dec 2021 20:29:26 +0000 Subject: [PATCH] one extra slash check! --- release-packaging/Classes/FluidFilesPath.sc | 2 +- test/FluidFilesPath_test.scd | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/release-packaging/Classes/FluidFilesPath.sc b/release-packaging/Classes/FluidFilesPath.sc index 7a3c82e..8c62565 100644 --- a/release-packaging/Classes/FluidFilesPath.sc +++ b/release-packaging/Classes/FluidFilesPath.sc @@ -2,6 +2,6 @@ FluidFilesPath { *new { arg fileName; fileName = fileName ? ""; - ^("%/../AudioFiles/".format(File.realpath(FluidDataSet.class.filenameSymbol).dirname) +/+ fileName); + ^("%/../AudioFiles".format(File.realpath(FluidDataSet.class.filenameSymbol).dirname) +/+ fileName); } } \ No newline at end of file diff --git a/test/FluidFilesPath_test.scd b/test/FluidFilesPath_test.scd index 585f577..0640a9f 100644 --- a/test/FluidFilesPath_test.scd +++ b/test/FluidFilesPath_test.scd @@ -1,6 +1,7 @@ ( // 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; )