Difference in path xxxx/./xxxx and xxxx/xxxx
is there a difference in the following two paths?
Path="/apps/WebLogicPPT/user_projects/wlsPPTDomain/./application开发者_StackOverflows/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"
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\.
...
精彩评论