mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 00:30:34 +02:00
parent
f1a7d07f8e
commit
5085009410
@ -13,6 +13,14 @@
|
||||
|
||||
**********************************************************************}
|
||||
|
||||
function GetDriveIDFromLetter(Const ADrive : PathStr) : Byte;
|
||||
|
||||
begin
|
||||
if length(ADrive)=0 then
|
||||
Result:=0
|
||||
else
|
||||
Result := (Ord(ADrive[1]))-64;
|
||||
end;
|
||||
|
||||
{$push}
|
||||
{$i-}
|
||||
|
@ -21,9 +21,11 @@ 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 GetDriveIDFromLetter(Const ADrive : RawByteString) : Byte;
|
||||
|
||||
Function SetCurrentDir (Const NewDir : UnicodeString) : Boolean;
|
||||
Function CreateDir (Const NewDir : UnicodeString) : Boolean;
|
||||
Function RemoveDir (Const Dir : UnicodeString) : Boolean;
|
||||
Function ForceDirectories(Const Dir: UnicodeString): Boolean;
|
||||
Function GetDriveIDFromLetter(Const ADrive : UnicodeString) : Byte;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user