kopia lustrzana https://github.com/micropython/micropython-lib
os.path: Add exists().
rodzic
6a89bb6cb6
commit
34931964b6
|
@ -1,3 +1,6 @@
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
def normcase(s):
|
def normcase(s):
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
@ -18,3 +21,6 @@ def split(path):
|
||||||
if not head:
|
if not head:
|
||||||
head = "/"
|
head = "/"
|
||||||
return (head, r[1])
|
return (head, r[1])
|
||||||
|
|
||||||
|
def exists(path):
|
||||||
|
return os.access(path, os.F_OK)
|
||||||
|
|
Ładowanie…
Reference in New Issue