lazarus/lcl/filectrl.pp
2002-05-29 21:44:38 +00:00

98 lines
2.8 KiB
ObjectPascal

{
/***************************************************************************
filectrl.pp
-----------
Component Library File Controls
Initial Revision : Sun Apr 23 18:30:00 PDT 2000
***************************************************************************/
*****************************************************************************
* *
* This file is part of the Lazarus Component Library (LCL) *
* *
* See the file COPYING.LCL, included in this distribution, *
* for details about the copyright. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
*****************************************************************************
}
{
@author(DirectoryExists - Curtis White <cwhite@aracnet.com>)
@created(23-Apr-2000)
@lastmod(23-Apr-2000)
This unit contains file and directory controls and supporting handling functions.
}
unit FileCtrl;
{$mode objfpc}{$H+}
interface
{$ifdef Trace}
{$ASSERTIONS ON}
{$endif}
uses
SysUtils;
{
@abstract (Function to determine if a directory exists or not.)
Introduced by Curtis White
Currently maintained by Curtis White
}
function DirectoryExists(const Name: String): Boolean;
function FileIsWritable(const AFilename: string): boolean;
function GetFileDescription(const AFilename: string): string;
implementation
{$IFNDEF win32}
uses
{$IFDEF Ver1_0}Linux{$ELSE}Unix{$ENDIF};
{$ENDIF}
{$I filectrl.inc}
initialization
finalization
end.
{
$Log$
Revision 1.4 2002/05/29 21:44:38 lazarus
MG: improved TCommon/File/OpenDialog, fixed TListView scrolling and broder
Revision 1.3 2002/05/10 06:05:50 lazarus
MG: changed license to LGPL
Revision 1.2 2001/06/15 10:31:05 lazarus
MG: set longstrings as default
Revision 1.1 2000/07/13 10:28:23 michael
+ Initial import
Revision 1.2 2000/05/09 00:00:33 lazarus
Updated my email address in the documentation to the current one. Also
removed email references in comments that were not @author comments to
fix problems with the documentation produced by pasdoc. CAW
Revision 1.1 2000/04/24 05:03:25 lazarus
Added filectrl unit for DirectoryExists function. CAW
}