Skip to content

Commit f896197

Browse files
authored
Implement removeDirectoryTree on POSIX (#242)
1 parent f838595 commit f896197

12 files changed

+566
-35
lines changed

pkgs/io_file/.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ffigen generated code
2+
lib/src/constant_bindings.g.dart linguist-generated
3+
lib/src/constants.g.dart linguist-generated
4+
lib/src/libc_bindings.g.dart linguist-generated
5+
src/constants.g.c linguist-generated
6+
src/constants.g.h linguist-generated

pkgs/io_file/constants.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"<sys/stat.h>": [
3+
"AT_SYMLINK_NOFOLLOW",
4+
"AT_RESOLVE_BENEATH",
5+
"AT_EMPTY_PATH",
36
"S_IEXEC",
47
"S_IFBLK",
58
"S_IFCHR",
@@ -36,17 +39,28 @@
3639
"EEXIST",
3740
"EINTR",
3841
"ENOENT",
39-
"EPERM",
42+
"EPERM"
43+
],
44+
"<fcntl.h>": [
45+
"AT_FDCWD",
46+
"AT_REMOVEDIR",
4047
"O_APPEND",
4148
"O_CLOEXEC",
4249
"O_CREAT",
50+
"O_DIRECTORY",
4351
"O_EXCL",
4452
"O_RDONLY",
4553
"O_TRUNC",
4654
"O_WRONLY"
4755
],
48-
"<fcntl.h>": [
49-
"AT_FDCWD",
50-
"AT_REMOVEDIR"
56+
"<dirent.h>" : [
57+
"DT_BLK",
58+
"DT_CHR",
59+
"DT_DIR",
60+
"DT_FIFO",
61+
"DT_LNK",
62+
"DT_REG",
63+
"DT_SOCK",
64+
"DT_UNKNOWN"
5165
]
5266
}

pkgs/io_file/lib/src/constant_bindings.g.dart

Lines changed: 40 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/io_file/lib/src/constants.g.dart

Lines changed: 114 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/io_file/lib/src/libc_bindings.g.dart

Lines changed: 44 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)