Function dirname
from Python module os.path
should return directory name, so why it does it return file name when we use doubleslash?
path = "/a.php"
dirname(path) # result is /
vs
path = "//a.php"
dirname(path) # result is //a.php
Function dirname
from Python module os.path
should return directory name, so why it does it return file name when we use doubleslash?
path = "/a.php"
dirname(path) # result is /
vs
path = "//a.php"
dirname(path) # result is //a.php