mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-08 19:58:42 +02:00

rawbytestring * DoDirSeparators() and GetDirs() marked as "rtlproc" so they can accept non-rawbytestring arguments as their var-parameters git-svn-id: branches/cpstrrtl@25306 -
30 lines
1.2 KiB
PHP
30 lines
1.2 KiB
PHP
{
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 1999-2000 by the Free Pascal development team
|
|
|
|
Disk functions from Delphi's sysutils.pas
|
|
|
|
See the file COPYING.FPC, 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.
|
|
|
|
**********************************************************************}
|
|
|
|
Function DiskFree(drive: byte) : int64;
|
|
Function DiskSize(drive: byte) : int64;
|
|
Function GetCurrentDir : {$ifdef FPC_UNICODE_RTL}UnicodeString{$else}AnsiString{$endif};
|
|
|
|
Function SetCurrentDir (Const NewDir : RawByteString) : Boolean;
|
|
Function CreateDir (Const NewDir : RawByteString) : Boolean;
|
|
Function RemoveDir (Const Dir : RawByteString) : Boolean;
|
|
Function ForceDirectories(Const Dir: RawByteString): Boolean;
|
|
|
|
Function SetCurrentDir (Const NewDir : UnicodeString) : Boolean;
|
|
Function CreateDir (Const NewDir : UnicodeString) : Boolean;
|
|
Function RemoveDir (Const Dir : UnicodeString) : Boolean;
|
|
Function ForceDirectories(Const Dir: UnicodeString): Boolean;
|
|
|