FinchFile extension
Extension methods for File to provide convenient path and name utilities. FinchFile adds helpful methods to the File class for extracting different parts of file paths and names. This extension simplifies common file operations by providing direct access to file components without manually parsing paths. Example usage:
final file = File('/path/to/document.pdf');
print(file.fileName); // 'document'
print(file.fileExtension); // '.pdf'
print(file.filePath); // '/path/to'
print(file.fileFullName); // 'document.pdf'
- on
Properties
- fileExtension → String
-
Available on File, provided by the FinchFile extension
Gets the file extension including the dot.no setter - fileFullName → String
-
Available on File, provided by the FinchFile extension
Gets the complete file name including the extension.no setter - fileName → String
-
Available on File, provided by the FinchFile extension
Gets the file name without the extension.no setter - filePath → String
-
Available on File, provided by the FinchFile extension
Gets the directory path containing the file.no setter