implemented handling of multiple path arguments

This commit is contained in:
root committed 2026-10-09 17:00:50 +02:00
1 parent 030ca4584a
commit 6293ef1740
3 files changed
+43 -37

No files matched your search

+4 -1
View File
@@ -10,6 +10,8 @@
#include <stdbool.h>
#include <argp.h>
#define MAX_PATH_NUM ( ( int )256 )
typedef enum {
no_permissions = 0,
char_permissions = 1,
@@ -44,7 +46,8 @@ typedef struct {
permission_mode_t permission_mode;
sorting_mode_t sorting_mode;
time_mode_t time_mode;
char* path;
char* path[MAX_PATH_NUM];
size_t path_count;
} arguments_t;
void initialise_args( arguments_t* arguments );