Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clumsyme/r2d2
some handy functions
https://github.com/clumsyme/r2d2
Last synced: 4 days ago
JSON representation
some handy functions
- Host: GitHub
- URL: https://github.com/clumsyme/r2d2
- Owner: clumsyme
- License: mit
- Created: 2019-02-18T03:13:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-18T06:38:57.000Z (almost 6 years ago)
- Last Synced: 2024-12-06T03:39:28.431Z (22 days ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# r2d2
some handy functions
## APIS:
### `goto(directroy: str)`
进入目标目录 `directroy` -> 操作 -> 返回之前目录。
用于临时进入目标目录进行操作,如果目标目录不存在,则会被创建。
```py
os.getcwd()
# /current/directorywith goto('/my/directory'):
os.getcwd()
# /my/directoryprocess()
os.getcwd()
# /current/directory
```