kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit d9b385fe2e28f96818fdce5c1bf90b18ced8edb4
parent 5bf5e4c8a69a63069dfb2c3ee1727c9222355815
Author: Marcin Szczepaniak <crabonature@users.noreply.github.com>
Date:   Sat, 17 Feb 2018 20:03:08 +0100

Ignore hidden files and some temporary editor files in assets (#225)


Diffstat:
src/cli.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/cli.c b/src/cli.c @@ -922,6 +922,13 @@ cli_build_asset(char *fpath, struct dirent *dp) char hash[(SHA256_DIGEST_LENGTH * 2) + 1]; bopt = cli_buildopt_default(); + + /* Ignore hidden files and some editor files */ + if (dp->d_name[0] == '.' || + strrchr(dp->d_name, '~') || strrchr(dp->d_name, '#')) { + return; + } + name = cli_strdup(dp->d_name); /* Grab the extension as we're using it in the symbol name. */