mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb/path: Walk up to root checking if a path is writable.
A dirname of / is / so the path will never have a length of 0. Close #3392
This commit is contained in:
parent
162cbda055
commit
cabaff8206
@ -143,7 +143,7 @@ def iswritable(path):
|
||||
|
||||
def ispathwritable(path):
|
||||
path = shell(path)
|
||||
while len(path) != 0:
|
||||
while len(path) > 1:
|
||||
if exists(path):
|
||||
return iswritable(path)
|
||||
path = dirname(path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user