diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-05-02 00:44:56 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-05-02 00:44:56 -0400 |
commit | d4ff44ab8db091ca0e7d1c8caa74f32784e672ef (patch) | |
tree | f68168dcc1be1594037223010fc916fc73eca7cf /src/deliverable.c | |
parent | a970d40094aca5ce43e3bf91b9a5a2323c41ead8 (diff) | |
download | stasis-d4ff44ab8db091ca0e7d1c8caa74f32784e672ef.tar.gz |
Move listdir to utils.c and export prototype
Diffstat (limited to 'src/deliverable.c')
-rw-r--r-- | src/deliverable.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/deliverable.c b/src/deliverable.c index dbbaecb..4318f53 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -1293,27 +1293,6 @@ int delivery_copy_wheel_artifacts(struct Delivery *ctx) { return system(cmd); } -static struct StrList *listdir(const char *path) { - struct StrList *node; - DIR *dp; - struct dirent *rec; - - dp = opendir(path); - if (!dp) { - return NULL; - } - node = strlist_init(); - - while ((rec = readdir(dp)) != NULL) { - if (!strcmp(rec->d_name, ".") || !strcmp(rec->d_name, "..")) { - continue; - } - strlist_append(&node, rec->d_name); - } - closedir(dp); - return node; -} - int delivery_index_wheel_artifacts(struct Delivery *ctx) { struct dirent *rec; DIR *dp; |