Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix · OSX ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix · OSX ] Distribution Issues

# CFileUtils

  Utilities for working with files and directories

[ Windows | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

## Quick Index

  DESCRIPTION

## Class Summary

class CFileUtils
{
public:

  static BOOL exists( const CStr *fullPath );
  static BOOL createTempFile( const CStr *csTempPath, const CStr *csExt, CStr *csOutFilePath );
  static ErrCode deleteFile( const CStr *fullPath );
  static BOOL isMountedDrive( const CStr *driveName );
  static BOOL isExeFile( const CStr *fileName );
  static ErrCode makeLongFileName( const CStr *shortFileName, CStr *longFileName );
  static ErrCode getFileTime( const CStr *fullPath, FILETIME *crDate, FILETIME *acDate, FILETIME *mdDate );

protected:

}; // CFileUtils

Back to the top of CFileUtils

### DESCRIPTION

Utilities for working with files and directories

Back to the top of CFileUtils

### BOOL exists( const CStr *fullPath );

Returns TRUE if the given file exists, FALSE otherwise.

in fullPath
  The file to check.

    	static	BOOL	exists( const CStr *fullPath );

Back to the top of CFileUtils

### BOOL createTempFile( const CStr *csTempPath, const CStr *csExt, CStr *csOutFilePath );

Creates a temporary file with a given extension.

in csTempPath
  Path to a writable directory in which the file will be created.
in csExt
  The extension the file will have
out csOutFilePath
  On exit, contains the full path of the temp file.

    	static	BOOL	createTempFile( const CStr *csTempPath, const CStr *csExt, CStr *csOutFilePath );

Back to the top of CFileUtils

### ErrCode deleteFile( const CStr *fullPath );

Deletes a file.

in fullPath
  The full path of the file to delete.

    	static	ErrCode	deleteFile( const CStr *fullPath );

Back to the top of CFileUtils

### BOOL isMountedDrive( const CStr *driveName );

Returns TRUE if the given drive is mounted, FALSE otherwise.

in driveName
  The drive name.

    	static	BOOL	isMountedDrive( const CStr *driveName );

Back to the top of CFileUtils

### BOOL isExeFile( const CStr *fileName );

Returns TRUE if the given file is an executable, FALSE otherwise.

in fileName
  The full path of the file to check.

    	static	BOOL	isExeFile( const CStr *fileName );

Back to the top of CFileUtils

### ErrCode makeLongFileName( const CStr *shortFileName, CStr *longFileName );

Creates a long file name.

in shortFileName
  A short ( or long ) path name.
out longFileName
  On exit, contains the long path name.

    	static	ErrCode	makeLongFileName( const CStr *shortFileName, CStr *longFileName );

Back to the top of CFileUtils

### ErrCode getFileTime( const CStr *fullPath, FILETIME *crDate, FILETIME *acDate, FILETIME *mdDate );

Gets the creation, backup, and modification dates of a file.

in fullPath
  The number of bytes to allocate.
out crDate
  On exit, the creation date.
out acDate
  On exit, the last access date.
out mdDate
  On exit, the modification date.

    	static	ErrCode	getFileTime( const CStr *fullPath, FILETIME *crDate, FILETIME *acDate, FILETIME *mdDate );

Back to the top of CFileUtils

## All Members

public:
  static BOOL exists( const CStr *fullPath );
  static BOOL createTempFile( const CStr *csTempPath, const CStr *csExt, CStr *csOutFilePath );
  static ErrCode deleteFile( const CStr *fullPath );
  static BOOL isMountedDrive( const CStr *driveName );
  static BOOL isExeFile( const CStr *fileName );
  static ErrCode makeLongFileName( const CStr *shortFileName, CStr *longFileName );
  static ErrCode getFileTime( const CStr *fullPath, FILETIME *crDate, FILETIME *acDate, FILETIME *mdDate );
protected:

Back to the top of CFileUtils

## Ancestors

Class does not inherit from any other class.

Back to the top of CFileUtils

## Descendants

Class is not inherited by any others.

Back to the top of CFileUtils

Generated from source by the Cocoon utilities on Fri Aug 23 12:34:03 2002 .

Main Page · JConfig · ImageMeister · System Properties Repository · WordMeister · Free Samples · Java Freeware · Contact Us · FAQ · Links

Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.
WarpMovie, TileMovie, JConfig, ImageMeister and MovieShredder are Trademarks of Samizdat Productions.