看了下File类JDK文档的说明,摘录如下:
An abstract representation of file and directory pathnames.User interfaces and operating systems use system-dependent pathname strings to name files and directories. This class presents an abstract, system-independent view of hierarchical pathnames. An abstract pathname has two components:
1.An optional system-dependent prefix string, such as a disk-drive specifier, "/" for the UNIX root directory, or "\\\\" for a Microsoft Windows UNC pathname, and
2.A sequence of zero or more string names.
The prefix of a UNC pathname is "\\\\"; UNC路径是什么意思?UNC路径的前缀是"\\\\",能否举个例子?
[ 本帖最后由 孙斌 于 2011-07-22 01:12 编辑 ] |