Exemplo n.º 1
0
		void deleteDirectory(const char *path)
		{
#if __S3E__
			s3eFileDeleteDirectory(path);
#else
#ifdef WIN32
			_rmdir(path);
#else
			rmdir(path);
#endif
#endif
		}
        FileSystem::status STDFileSystem::_deleteDirectory(const char* path)
        {
            char buff[512];
            _getFullPath(path, buff);

#if __S3E__
            return (s3eFileDeleteDirectory(buff) == S3E_RESULT_SUCCESS ? status_ok : status_error);
#elif _WIN32
            return (_mkdir(buff) != -1 ? status_ok : status_error);
#else
            return (mkdir(buff, 0777) != -1 ? status_ok : status_error);
#endif
            return status_error;
        }