Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vercel/wait-for
Small utility that waits for a file to exist and optionally have some permissions set.
https://github.com/vercel/wait-for
Last synced: 12 days ago
JSON representation
Small utility that waits for a file to exist and optionally have some permissions set.
- Host: GitHub
- URL: https://github.com/vercel/wait-for
- Owner: vercel
- License: mit
- Created: 2018-04-26T09:30:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-02T00:48:25.000Z (about 6 years ago)
- Last Synced: 2024-12-17T23:23:13.717Z (16 days ago)
- Language: C
- Size: 9.77 KB
- Stars: 49
- Watchers: 12
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# wait-for
A small utility that waits for a file to exist, optionally with some permissions.
## Building
Either via Docker:
```console
$ git submodule update --init --recursive
$ docker build -t zeit/wait-for .
```or using CMake (requires Linux)
```console
$ git submodule update --init --recursive
$ mkdir build && cd build
$ cmake .. -DCMAKE_BUILD_TYPE=Release
$ cmake --build .
```## Usage
```
wait-for [--help] [-rwx] [-dfps] [-U ]Wait for a file to exist and optionally have one or modes
-h, --help Shows this help message
-x, --execute Wait for the path to become executable
-r, --read Wait for the path to become readable
-w, --write Wait for the path to become writable
-p, --pipe Wait for the path to be a pipe (FIFO)
-s, --socket Wait for the path to be a socket
-f, --file Wait for the path to be a regular file
-d, --directory Wait for the path to be a directory
-U, --username The username to run access checks for (NOT the user ID)If multiple modes are specified, wait-for waits for all of them to become available.
If multiple file types are specified, wait-for waits for the file to be any one of the specified types.
```# License
Copyright © 2018 ZEIT, Inc. Released under the [MIT License](LICENSE.md).