If this path was created by invoking the {@code File} {@link File#toPath toPath} method then there is no guarantee that the {@code File} object returned by this method is {@link #equals equal} to theoriginal {@code File}. @return a {@code File} object representing this path @throws UnsupportedOperationException if this {@code Path} is not associated with the default provider
java.io.File
corresponding to this path.
@return the file corresponding to this path
File
representation of this FileResource
. If this FileResource
is backed by a physical file on disk, that file is returned by this call. For non-file based implementations, this call may create a temporary file somewhere on disk, with the data from this resource. The temporary file will be deleted when the application exits. A non-file based implementation should return the same file in multiple calls to {@link #toFile()}, unless the resource has changed in between (e.g. by a call to {@link #write(String)}.
|
|
|
|
|
|