English
Appearance
Returns the parent path one level above the given path.
filePath::string
string
getParentFilePath('C:\\Windows\\System32', true); // 'C:\Windows' getParentFilePath('/home/user/text.txt'); // '/home/user'