convert line ends
[canaan.git] / prj / cam / src / framewrk / filetool.h
blob0a0d15b48d2c99de1bd417ec0e64f32f2edafca9
1 /*
2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
4 */
6 // $Header: r:/t2repos/thief2/src/framewrk/filetool.h,v 1.6 2000/01/29 13:20:50 adurant Exp $
7 // misc disk utility stuff
8 #pragma once
10 // does this directory exist, modifies path to be well-formed
11 EXTERN bool dir_exists(char *path);
13 // munges base_path, base_2, and file together, adding appropriate /'s, into targ
14 // NOTE: there MUST BE A BASE_PATH, and targ must be long enough
15 EXTERN char *diskPathMunge(char *targ, const char *base_path, const char *base_2, const char *file);
17 // if there is no extension on the file, attaches it
18 // returns in targ, post is extra (with the "." included)
19 // if targ is NULL puts it back in base
20 EXTERN char *attachPostfix(char *targ, char *base, const char *post);
22 // copies from current location in src_hnd to file named name
23 EXTERN bool CopyOpenFile(const char *name, int src_hnd);
24 // copies src to targ
25 EXTERN bool CopyFileNamed(const char *targ, const char *src);
27 // this is stupid, but might as well be here
28 #define is_slash(c) ((c=='\\')||(c=='/'))
30 // checks to see if a file is fully qualified
31 EXTERN BOOL is_full_path(const char* fn);