Page 1 of 1
About Question enthuware.ocpjp.v7.2.1216 :
Posted: Fri Sep 20, 2013 6:38 am
by The_Nick
Leading period/dot characters in file name are treated as regular characters in match operations. For example, the "*" glob pattern matches file name ".login". The Files.isHidden method may be used to test whether a file is considered hidden.
In globbing, "." is always considered as a characther right? not only when it's a leading character in a filename, isn't it?
The_Nick.
Re: About Question enthuware.ocpjp.v7.2.1216 :
Posted: Fri Sep 20, 2013 6:57 am
by admin
What do you mean by "always"? Do you have a specific case in mind?
-Paul.
Re: About Question enthuware.ocpjp.v7.2.1216 :
Posted: Fri Sep 20, 2013 9:02 am
by The_Nick
*.{java,rtf}
Here for example "." it's not leading but it's in the second position.
The_Nick.
Re: About Question enthuware.ocpjp.v7.2.1216 :
Posted: Fri Sep 20, 2013 9:07 am
by admin
Try it out

See if *.{java,rtf} matches some file named filejava