HEX
Server: Apache
System: Linux shared178.accountservergroup.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User: somesolu (2995)
PHP: 8.2.33
Disabled: NONE
Upload Files
File: //opt/rh/rh-python35/root/usr/lib/python3.5/site-packages/setuptools/utils.py
import os
import os.path


def cs_path_exists(fspath):
    if not os.path.exists(fspath): 
        return False
    # make absolute so we always have a directory
    abspath = os.path.abspath(fspath)
    directory, filename = os.path.split(abspath)
    return filename in os.listdir(directory)