HJW
HJW

Reputation: 23443

Difference in path xxxx/./xxxx and xxxx/xxxx

is there a difference in the following two paths?

Path="/apps/WebLogicPPT/user_projects/wlsPPTDomain/./applications/ssc/sscoc_web_sos_11.1ps_v0.1.ear"

Path="/apps/WebLogicPPT/user_projects/wlsPPTDomain/applications/ssc/sscoc_web_sos_11.1ps_v0.1.ear"

Upvotes: 0

Views: 538

Answers (1)

Anders Lindahl
Anders Lindahl

Reputation: 42870

In most operating systems, . represents the current directory and .. represents the parent directory.

Given a file structure like this:

C:.
└───foo
    └───bar      

You can list the contents of bar in numerous ways:

dir c:\foo\bar
dir c:\foo\.\.\.\.\.\bar
dir c:\foo\..\foo\..\foo\bar\.
...

Upvotes: 1

Related Questions