In general this is not possible, because the path does not include the protocol and thus does not identify the virtual file system that the file came from. If you know that the file is from the local file system, you can use LocalFileSystem.findFileByPath().
In general this is not possible, because the path does not include the protocol and thus does not identify the virtual file system that the file came from. If you know that the file is from the local file system, you can use LocalFileSystem.findFileByPath().