summaryrefslogtreecommitdiffstats
path: root/src/filesystem.c
AgeCommit message (Collapse)AuthorFilesLines
2022-03-12fixup! WIP: Port to serd1David Robillard1-0/+3
2022-03-12fixup! WIP: Port to serd1David Robillard1-2/+0
2021-04-14Fix build on FreeBSDDavid Robillard1-0/+3
2021-01-11Use unique test bundle names so tests can run in parallelDavid Robillard1-8/+14
2021-01-02Use email address instead of website for attributionDavid Robillard1-1/+1
2021-01-02Remove the need for a generated configuration headerDavid Robillard1-4/+4
2020-12-31Format all code with clang-formatDavid Robillard1-330/+337
2020-12-31Avoid "else" after "return"David Robillard1-10/+11
2020-12-18Make symlink targets relative when they share a common parentDavid Robillard1-1/+5
This might not be the right thing in every case, but it's the best we can do without API to specifically configure this sort of thing (like setting a project root) which doesn't currently exist.
2020-12-18Windows: Prefer backslash as a path separatorDavid Robillard1-1/+24
This situation is, as always, a total nightmare. In an attempt to not make weird paths with mixed separators, a heuristic is used here which uses forward slash if it seems that the input paths do. Otherwise, backslash (the "preferred" separator on Windows despite all good sense) is used.
2020-12-18Windows: Don't bother trying to create symbolic linksDavid Robillard1-6/+1
This only works on modern systems with "Developer Mode" enabled, so everything needs to work without them in reality anyway.
2020-12-18Windows: Fix leaking directory handlesDavid Robillard1-0/+1
2020-12-18Add lilv_path_absolute_child()David Robillard1-0/+10
2020-12-18Add lilv_path_filename()David Robillard1-0/+22
2020-11-11Fix potential memory error when joining filesystem pathsDavid Robillard1-4/+5
2020-08-07Fix error handling when copying filesDavid Robillard1-0/+4
2020-08-06Implement file locking on WindowsDavid Robillard1-1/+14
2020-08-06Add lilv_remove()David Robillard1-0/+12
2020-08-06Fix lilv_create_directories() error handling when path is a fileDavid Robillard1-1/+2
2020-08-06Make lilv_dir_for_each() ignore dot entriesDavid Robillard1-2/+6
2020-08-06Add lilv_create_temporary_directory()David Robillard1-0/+40
2020-08-06Add lilv_is_directory()David Robillard1-0/+8
2020-08-06Add lilv_path_current()David Robillard1-0/+6
2020-08-06Add lilv_temp_directory_path()David Robillard1-0/+19
2020-08-06Add block parameter to lilv_flockDavid Robillard1-2/+3
2020-08-06Remove lilv_dir_path()David Robillard1-20/+1
This function was weird. Instead, to make a directory path with trailing separator, join nothing as in Python.
2020-08-06Rename some filename utilities for clarityDavid Robillard1-5/+5
Loosely inspired by Python and the std::filesystem API.
2020-08-06Separate filesystem utilitiesDavid Robillard1-0/+405