INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Failure of relative path references starting "\"  (Read 3188 times)

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750
Failure of relative path references starting "\"
« on: March 12, 2013, 06:23:25 pm »

1 With:

 Playlist location: R:\Playlists\!test.m3u
 Track location: R:\Spacers\02480002928928-1-1.wma
 Playlist line: \Spacers\02480002928928-1-1.wma

do File | Open Media File...

Expected: track plays
Observed: dialog saying "Warning There is nothing to play."

This

 Playlist location: R:\Playlists\!test.m3u
 Track location: R:\Spacers\02480002928928-1-1.wma
 Playlist line: R:\Spacers\02480002928928-1-1.wma

and

 Playlist location: R:\!test.m3u
 Track location: R:\Spacers\02480002928928-1-1.wma
 Playlist line: \Spacers\02480002928928-1-1.wma

succeed as expected.

Matt, I think there's a loophole is the relative path resolution here.

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Failure of relative path references starting "\"
« Reply #1 on: March 12, 2013, 06:52:51 pm »

Could you mail a test package (playlist + a file or two) that will show the issue to matt at jriver dot com?

Thanks for your help.
Logged
Matt Ashland, JRiver Media Center

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750
Re: Failure of relative path references starting "\"
« Reply #2 on: March 12, 2013, 06:54:42 pm »

Could you mail a test package (playlist + a file or two) that will show the issue to matt at jriver dot com?

Sure. Doing so now... EDIT: Done.

Thanks for your help.

Thanks for your interest in this issue! I'll be very happy to see it fixed.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Failure of relative path references starting "\"
« Reply #3 on: March 13, 2013, 09:19:46 am »

Thanks for the sample package.

First, I was going to say you should switch:
\Spacers\02480002928928-1-1.wma
to
..\Spacers\02480002928928-1-1.wma

But then I asked somebody else here and they said "if it starts with slash, that means the path is starting on the current drive."

So I learned something new.  We'll make the program support that syntax in a coming build.
Logged
Matt Ashland, JRiver Media Center

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750
Re: Failure of relative path references starting "\"
« Reply #4 on: March 13, 2013, 09:23:09 am »

"if it starts with slash, that means the path is starting on the current drive."

Indeed. That's been so since MS-DOS.

We'll make the program support that syntax in a coming build.

Excellent! Thanks.
Logged

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750
Re: Failure of relative path references starting "\"
« Reply #5 on: June 20, 2013, 08:16:14 pm »

Matt
We'll make the program support that syntax in a coming build.

Seems you did - thanks - but with faulty Filename:

 

and this prangs e.g. Locate On Disk (external).
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Failure of relative path references starting "\"
« Reply #6 on: June 21, 2013, 09:55:02 am »

Thanks for the heads-up.

Next build:
Fixed: A relative path that starts with a backslash could incorrectly end up with a filename that had two backslashes after the drive.
Logged
Matt Ashland, JRiver Media Center

mbagge

  • Galactic Citizen
  • ****
  • Posts: 255
Re: Failure of relative path references starting "\"
« Reply #7 on: June 21, 2013, 11:14:20 am »

Since the good old DOS days there were two built in folder names, "." and".."
If you are to construct a relative path with these names, then ".\filename.ext" refers to a file in the current folder, and "..\filename.ext" refers to a file in the parent folder. When using"\filename.ext" it refers to a file in the root folder of the  current drive, as mentioned above.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Failure of relative path references starting "\"
« Reply #8 on: June 21, 2013, 03:12:08 pm »

Since the good old DOS days there were two built in folder names, "." and".."

off topic historical footnote: this predates DOS by at least a dozen years.
Logged
The opinions I express represent my own folly.

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: Failure of relative path references starting "\"
« Reply #9 on: June 21, 2013, 03:14:41 pm »

CP/M?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Failure of relative path references starting "\"
« Reply #10 on: June 21, 2013, 03:19:08 pm »

My belief was that it was invented in '69 w/Unix and directory hard links.   Perhaps the idea was borrowed from a previous invention though.
Logged
The opinions I express represent my own folly.

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750
Re: Failure of relative path references starting "\"
« Reply #11 on: June 22, 2013, 09:19:44 am »

Next build:
Fixed: A relative path that starts with a backslash could incorrectly end up with a filename that had two backslashes after the drive.
Thanks Matt.
Logged

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750
Re: Failure of relative path references starting "\"
« Reply #12 on: November 04, 2013, 07:42:58 pm »

Quote
Fixed: A relative path that starts with a backslash could incorrectly end up with a filename that had two backslashes after the drive.

Verified in MC19 Build  54.
Logged
Pages: [1]   Go Up