aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-08-15 10:04:56 -0400
committerGitHub <noreply@github.com>2024-08-15 10:04:56 -0400
commit7c061ae7c293de0b52bad6a9d51a326005c4395c (patch)
tree877d12de758921a381cf278832ba0449d51be436 /src/utils.c
parent683b3f78663efcff7a406d8287b78d73f18cc1f1 (diff)
downloadstasis-7c061ae7c293de0b52bad6a9d51a326005c4395c.tar.gz
indexer: Handle destination directories more gracefully (#28)
* Handle destination directories more gracefully * The storage.output_dir is now the storage.root to avoid generating a sub-directory beneath the temporary working directory * The destination directory is created, then resolved by realpath to avoid generating the destination directory within the temporary working directory when a relative path is used as input * Replace the original file instead of using rename() * rename() cannot operate across file system boundaries * Dynamically allocate rootdirs array * Use realpath on positional arguments * Convert all markdown files to HTML * README.html files are considered entry points and are linked as index.html * Assign retcode after indexing
Diffstat (limited to 'src/utils.c')
0 files changed, 0 insertions, 0 deletions