0

I have two types of folder structure.

  1. A/B/C/D
  2. A/Z/C/D

Is there any way to navigate to D path from A using a single generic relative path approach? Pls provide any java code snippets.

Ponsuyambu
  • 7,876
  • 5
  • 27
  • 41
  • can't undestand the question. How about B/C/D/ - go to folder D? or you want to access both Ds? – Veselin Davidov May 22 '15 at 19:01
  • What do you mean by "*navigate*"? What have you already tried and why it didn't work? What version of Java you use? Please provide these and any other relevant details. – PM 77-1 May 22 '15 at 19:01
  • For strcture 1, I can use cd B/C/D. For 2, I can use cd Z/C/D but i want to know is there any possibility to use like cd */C/D? – Ponsuyambu May 22 '15 at 19:07

1 Answers1

0

I assume that you have two folders with Same name under different directories.

And

you want to create a link (or) short cut to go to one path always to avoid the confusion.

For that you need to create a link for that particular folder. Like

ln   -s   /A/B/C/D   To-D

More info.

Community
  • 1
  • 1
K139
  • 3,654
  • 13
  • 17