diff -r a82709c26b19 -r 2be6fadcac40 src/eric7/SystemUtilities/FileSystemUtilities.py --- a/src/eric7/SystemUtilities/FileSystemUtilities.py Sat Apr 06 12:50:04 2024 +0200 +++ b/src/eric7/SystemUtilities/FileSystemUtilities.py Sun Apr 07 17:40:03 2024 +0200 @@ -122,7 +122,7 @@ return any(os.access(os.path.join(directory, file), os.X_OK) for directory in dirs) -def startswithPath(path, start): +def startsWithPath(path, start): """ Function to check, if a path starts with a given start path. @@ -134,8 +134,9 @@ path @rtype bool """ + start1 = start if start.endswith(os.sep) else f"{start}{os.sep}" return bool(start) and ( - path == start or normcasepath(path).startswith(normcasepath(start + "/")) + path == start or normcasepath(path).startswith(normcasepath(start1)) )