public static function exists($path)
    {
        if (file_exists($path) === false) {
            return false;
        }

        $path = preg_replace('#^file:/+([a-z]:/|/)#i', '$1', $path);
        $pinfo = pathinfo($path);

        $rpath = strtr(realpath($path), '\\', '/');

        if ($pinfo['dirname'] !== '.') {
            $path = Uri::canonpath($pinfo['dirname']) . '/' . $pinfo['basename'];
        }

        $pinfo = null;

        return $rpath === $path || substr($rpath, strlen($rpath) - strlen($path)) === $path;
    }
public static function exists($path)
    {
        if (file_exists($path) === false) {
            return false;
        }

        $path = preg_replace('#^file:/+([a-z]:/|/)#i', '$1', $path);
        $pinfo = pathinfo($path);

        $rpath = strtr(realpath($path), '\\', '/');

        if ($pinfo['dirname'] !== '.') {
            $path = Uri::canonpath($pinfo['dirname']) . '/' . $pinfo['basename'];
        }

        $pinfo = null;

        return $rpath === $path || substr($rpath, strlen($rpath) - strlen($path)) === $path;
    }
public static function exists ( $ path ) { if ( file_exists ( $ path ) === false ) { return false ; } $ path = preg_replace ( '#^file:/+([a-z]:/|/)#i' , '$1' , $ path ) ; $ pinfo = pathinfo ( $ path ) ; $ rpath = strtr ( realpath ( $ path ) , '\\' , '/' ) ; if ( $ pinfo [ 'dirname' ] !== '.' ) { $ path = Uri :: canonpath ( $ pinfo [ 'dirname' ] ) . '/' . $ pinfo [ 'basename' ] ; } $ pinfo = null ; return $ rpath === $ path || substr ( $ rpath , strlen ( $ rpath ) - strlen ( $ path ) ) === $ path ; }
Check if file exists using case-sensitive,
For help developers who using Windows OS and using unix-like for production

@param string $path
@return bool
Check if file exists using case - sensitive For help developers who using Windows OS and using unix - like for production