Mercurial > hg > openjdk > jigsaw > jdk
changeset 4336:e9760efb5110
7027900: (fs) glob syntax under-specified
Summary: Clarify how leading dots are treated in nio2 glob
Reviewed-by: alanb
author | sherman |
---|---|
date | Mon, 18 Apr 2011 21:44:03 -0700 |
parents | b38b204748c1 |
children | 495dcc360214 ed01737a2e9a 7cd61feb3ec6 |
files | src/share/classes/java/nio/file/FileSystem.java |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/java/nio/file/FileSystem.java Mon Apr 18 11:32:41 2011 -0700 +++ b/src/share/classes/java/nio/file/FileSystem.java Mon Apr 18 21:44:03 2011 -0700 @@ -391,6 +391,13 @@ * character is used to separate the subpatterns. Groups cannot be nested. * </p></li> * + * <li><p> Leading period<tt>/</tt>dot characters in file name are + * treated as regular characters in match operations. For example, + * the {@code "*"} glob pattern matches file name {@code ".login"}. + * The {@link Files#isHidden} method may be used to test whether a file + * is considered hidden. + * </p></li> + * * <li><p> All other characters match themselves in an implementation * dependent manner. This includes characters representing any {@link * FileSystem#getSeparator name-separators}. </p></li>