diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2014-02-22 17:17:57 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2014-02-22 17:17:57 +0000 |
commit | 9399689e7bf70cff9bc1a539d9e0ded556257fcf (patch) | |
tree | 8f04b5e697082ba9ade9b623117b0b0281f3437f | |
parent | a8f37587594d6b5b8ac826c90373f1dcdd21650d (diff) | |
download | libgphoto2-9399689e7bf70cff9bc1a539d9e0ded556257fcf.tar.gz |
gp_system_rmdir
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14775 67ed7778-7388-44ab-90cf-0a291f65f57c
-rw-r--r-- | libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c b/libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c index 84b169d6d..e71ba53cc 100644 --- a/libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c +++ b/libgphoto2_port/libgphoto2_port/gphoto2-port-portability.c @@ -62,6 +62,14 @@ int gp_system_mkdir (const char *dirname) { return (GP_OK); } +int gp_system_rmdir (const char *dirname) { + + if (_rmdir(dirname) < 0) + return (GP_ERROR); + return (GP_OK); +} + + gp_system_dir gp_system_opendir (const char *dirname) { GPPORTWINDIR *d; |