mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb: Allow checking if '.' exists as a path.
This commit is contained in:
parent
1519d11fce
commit
55f2d69e9b
@ -96,7 +96,9 @@ def listdir(path):
|
||||
|
||||
def exists(paths):
|
||||
def _exists(p):
|
||||
return os.path.basename(p) in listdir(dirname(p))
|
||||
if '/' not in host(p):
|
||||
p = shell(join(os.getcwd(), host(p)))
|
||||
return basename(p) in ['.'] + listdir(dirname(p))
|
||||
|
||||
if type(paths) == list:
|
||||
results = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user