Path passing true? for the toRealPath method?

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
The_Nick
Posts: 132
Joined: Thu May 16, 2013 9:23 am
Contact:

Path passing true? for the toRealPath method?

Post by The_Nick »

From this website oracle tutorial: http://docs.oracle.com/javase/7/docs/ap ... /Path.html
The toRealPath method returns the real path of an existing file. This method performs several operations in one:

If true is passed to this method and the file system supports symbolic links, this method resolves any symbolic links in the path.
If the Path is relative, it returns an absolute path.
If the Path contains any redundant elements, it returns a path with those elements removed.
Well, it does not compile by passing true to toRealPath.. only with NOFOLLOW_LINKS

Post Reply

Who is online

Users browsing this forum: No registered users and 232 guests