os.path: Add exists().

pull/118/head
Paul Sokolovsky 2014-05-14 17:52:37 +03:00
rodzic 6a89bb6cb6
commit 34931964b6
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -1,3 +1,6 @@
import os
def normcase(s):
return s
@ -18,3 +21,6 @@ def split(path):
if not head:
head = "/"
return (head, r[1])
def exists(path):
return os.access(path, os.F_OK)