fx.io: update all path parameters to be fx_values
This commit is contained in:
+7
-5
@@ -12,17 +12,19 @@ int main(int argc, const char **argv)
|
||||
}
|
||||
|
||||
fx_directory *dir = NULL;
|
||||
fx_path *path = fx_path_create_from_cstr(argv[1]);
|
||||
fx_result result = fx_directory_open(FX_DIRECTORY_ROOT, path, 0, &dir);
|
||||
fx_result result = fx_directory_open(
|
||||
FX_DIRECTORY_ROOT,
|
||||
FX_CSTR(argv[1]),
|
||||
0,
|
||||
&dir);
|
||||
|
||||
if (fx_result_is_error(result)) {
|
||||
fx_throw(result);
|
||||
return -1;
|
||||
}
|
||||
|
||||
fx_iterator *it = fx_directory_begin(
|
||||
dir,
|
||||
FX_DIRECTORY_ITERATE_PARENT_FIRST);
|
||||
fx_iterator *it
|
||||
= fx_directory_begin(dir, FX_DIRECTORY_ITERATE_PARENT_FIRST);
|
||||
fx_foreach(val, it)
|
||||
{
|
||||
fx_directory_entry *entry = NULL;
|
||||
|
||||
Reference in New Issue
Block a user