This commit is contained in:
2024-12-18 19:36:54 +08:00
parent eb1abfc02a
commit ea973a2787
4 changed files with 40 additions and 3 deletions

View File

@@ -72,6 +72,7 @@ extension FileSystemEntityExt on FileSystemEntity {
}
extension FileExtension on File {
/// Get the file extension, not including the dot.
String get extension => path.split('.').last;
/// Copy the file to the specified path using memory.