Skip to content

Commit 2970646

Browse files
Update compiler/src/dotty/tools/io/PlainFile.scala
Co-authored-by: Nicolas Stucki <[email protected]>
1 parent 52c5c14 commit 2970646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/io/PlainFile.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class PlainFile(val givenPath: Path) extends AbstractFile {
7777
}
7878

7979
/** Is this abstract file a directory? */
80-
val isDirectory: Boolean = givenPath.isDirectory
80+
val isDirectory: Boolean = givenPath.isDirectory // cached for performance on Windows
8181

8282
/** Returns the time that this abstract file was last modified. */
8383
def lastModified: Long = givenPath.lastModified.toMillis

0 commit comments

Comments
 (0)