1 /* $Id$ 2 * Provides functions to file and directory existence check 3 * 4 * HUSKYLIB: common defines, types and functions for HUSKY 5 * 6 * This is part of The HUSKY Fidonet Software project: 7 * see http://husky.sourceforge.net for details 8 * 9 * 10 * HUSKYLIB is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU Lesser General Public 12 * License as published by the Free Software Foundation; either 13 * version 2 of the License, or (at your option) any later version. 14 * 15 * HUSKYLIB is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * General Public License for more details. 19 * 20 * You should have received a copy of the GNU Lesser General Public 21 * License along with this library; see file COPYING. If not, write to the 22 * Free Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 * 24 * See also http://www.gnu.org, license may be found here. 25 */ 26 27 #ifndef HUSKY_FEXIST_H__ 28 #define HUSKY_FEXIST_H__ 29 30 #include "compiler.h" 31 #include "huskyext.h" /* compiler see directory of this .h file */ 32 33 HUSKYEXT int _fast fexist(const char *filename); 34 HUSKYEXT long _fast fsize(const char *filename); 35 HUSKYEXT time_t _fast fmtime(const char *filename); 36 HUSKYEXT int _fast direxist(const char *directory); 37 /*DOC 38 Input: a pointer to a \0 terminated string 39 Output: 0 if successfull, 1 else 40 FZ: pathName is a correct directory name 41 createDirectoryTree creates the directory and all parental directories 42 if they do not exist. 43 44 was taken from hpt\fcommon 45 */ 46 HUSKYEXT int _createDirectoryTree(const char *pathName); 47 48 #endif 49