getFileFromPublic method
Retrieves a file from the public directory based on the provided path.
The path
parameter specifies the file path relative to the public directory.
Returns a File object representing the file.
Implementation
File getFileFromPublic(String path) {
String longPath = getPublicDirectory(path);
return File(longPath);
}