Lines Matching defs:file

8  * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
26 package java.nio.file;
28 import java.nio.file.attribute.*;
34 * Simple file tree walker that works in a similar manner to nftw(3C).
66 * Walk file tree starting at the given file
76 * @param file
83 private FileVisitResult walk(Path file,
91 (file instanceof BasicFileAttributesHolder) &&
94 BasicFileAttributes cached = ((BasicFileAttributesHolder)file).get();
100 // attempt to get attributes of file. If fails and we are following
105 attrs = Files.readAttributes(file, BasicFileAttributes.class, linkOptions);
109 attrs = Files.readAttributes(file,
120 // If access to starting file is denied then SecurityException
121 // is thrown, otherwise the file is ignored.
128 // unable to get attributes of file
130 return visitor.visitFileFailed(file, exc);
133 // at maximum depth or file is not a directory
135 return visitor.visitFile(file, attrs);
142 // if this directory and ancestor has a file key then we compare
149 return visitor.visitFileFailed(file,
150 new FileSystemLoopException(file.toString()));
155 isSameFile = Files.isSameFile(file, ancestor.file());
163 return visitor.visitFileFailed(file,
164 new FileSystemLoopException(file.toString()));
169 ancestors.add(new AncestorDirectory(file, key));
179 stream = Files.newDirectoryStream(file);
181 return visitor.visitFileFailed(file, x);
192 result = visitor.preVisitDirectory(file, attrs);
224 return visitor.postVisitDirectory(file, ioe);
241 Path file() {