Python/File System
< Python
Jump to navigation
Jump to search
| TODO | CODE |
|---|---|
| Read/Write file mtime |
import os.path
os.path.getmtime('filename')
|
| Copy/Move file | |
| Path conversion |
import os.path
CODE_PATH = os.path.realpath(os.path.dirname(__file__)) + '/'
DATA_PATH = os.path.expanduser('~/osm-data/')
|
| List directory |