voiceglue/voiceglue — pull request #7 by JamesCordell (2012-02-08 00:36:24+00:00)
Title: There is a bug in this cleaner subroutine when a path contains three rel...

...ative previous directory references. Such as,

/aaa/bbb/ccc/../../../file.wav
currently
/aaa/bbb/ccc/../../../file.wav
/aaa/bbb/162.wav
Adding the Subtraction $i--;
allows the iterator $i to be indexed to the correct part of the array to allow the splice to progress correctly.
Like this.
/aaa/bbb/ccc/../../../file.wav
/file.wav