• Post Reply Bookmark Topic Watch Topic
  • New Topic

what does this mean ../../  RSS feed

 
kwame Iwegbue
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know this is a very basic question, but I hope someone can tell me simply where this is in the file system. I'm trying the locate a jar file in an Ant project classpath, descibed as:

<property name="aspectjrt.jar"
location="../../lib/aspectjrt-1.2.1.jar"/>
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.. mens go one folder backwords - so in this case - is current directory of build.xml (the ANT build file) and then two folders back - into the lib folder - there should 'aspectjrt-1.2.1.jar' be.
 
Sanjaya Sugiarto
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are . and ..
Those comes from Unix world, which is everything is a file.
. means actual folder
.. means parent folder

Assumed your directory structure: /home/folder1/folder2
if you do /root/folder1 than it means (no dot(s) it refers to /root/folder1
if you do ./folder3 than it refers to /home/folder1/folder2/folder3
if you do ../folder1a than it refers to /home/folder1a
if you do ../../root than it refers to /root

Those . and .. are very common because most network protocol using *nix principle (like FTP) therefore they works also in windows world
 
kwame Iwegbue
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Sanjaya. Still not very clear. Where can I go to read more about this?
 
kwame Iwegbue
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Finally, I get it!!

. means current folder,
.. means one folder up,
../.. means 2 folders up from current working folder.

Here's a tutorial: Unix file system
[ October 21, 2006: Message edited by: kwame Iwegbue ]
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This also applies to Windows Operating Sytems.

Open a command console and play with the CD command.

 
Mike Cole
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.. means one folder up,


Well depends on your point of view.

for me ../ means going down.

upwards is this -> root/trunk/branch/leaf

hehehe
[ October 23, 2006: Message edited by: Michael Kohlbach ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!