getFileNameWithoutExtension function
Converts the given filePath
to a consistent, local path format.
Implementation
String getFileNameWithoutExtension(String filePath) {
final localSystemFilePath = toLocalSystemPathFormat(filePath);
return p.basenameWithoutExtension(localSystemFilePath);
}