diff options
author | José Bollo <jose.bollo@iot.bzh> | 2015-12-14 15:01:13 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2015-12-14 15:01:13 +0100 |
commit | 509d0ed17a1f59605b7d36f60561d0cafcadc9de (patch) | |
tree | e385384c23b2b93893b9c35e1e5b6e15652faccc /src/utils-dir.h | |
parent | e2de563d1ecb4585ce68521bd42f3ef45ac79f16 (diff) |
framework basis with plugins
Change-Id: Ib8c27d9a7624307aeaa8795b72a3c4a3965aa241
Diffstat (limited to 'src/utils-dir.h')
-rw-r--r-- | src/utils-dir.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/utils-dir.h b/src/utils-dir.h new file mode 100644 index 0000000..c296d02 --- /dev/null +++ b/src/utils-dir.h @@ -0,0 +1,25 @@ +/* + Copyright 2015 IoT.bzh + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +int remove_directory_content_fd(int dirfd); +int remove_directory_content(const char *directory); +int remove_directory_content_at(int dirfd, const char *directory); +int remove_directory(const char *directory, int force); +int remove_directory_at(int dirfd, const char *directory, int force); + +int create_directory_at(int dirfd, const char *directory, int mode, int mkparents); +int create_directory(const char *directory, int mode, int mkparents); + |