fileStemOpt method

Option<String> fileStemOpt()

Extracts the portion of the file name before the last "." -

None/null, if there is no file name; The entire file name if there is no embedded .; The entire file name if the file name begins with . and has no other .s within; Otherwise, the portion of the file name before the final .

Implementation

Option<String> fileStemOpt() => Env.isWindows
    ? WindowsPath(_string).fileStemOpt()
    : UnixPath(_string).fileStemOpt();