User Tools

Site Tools


api:dk11:delphi:gisinternals.checkfilewriteaccessex_string_boolean_boolean_boolean

Table of Contents

CheckFileWriteAccessEx method

DK11 for Delphi | GisInternals.CheckFileWriteAccessEx | Enums | Fields | Methods | Types

Check if file can be written: directory is proper,file is not read-only and is not used by any other application.

Syntax

// Delphi
function CheckFileWriteAccessEx(
  const _path : String;
  const _plain : Boolean;
  const _backup : Boolean;
  const _temp : Boolean
) : Boolean;
// C++ Builder
extern DELPHI_PACKAGE bool CheckFileWriteAccessEx(
  const UnicodeString _path,
  const bool _plain,
  const bool _backup,
  const bool _temp
);

Parameters

Name Type Description
_path String path to be checked
_plain Boolean if true then only plain file path will be checked
_backup Boolean if true then backup file (*.~*) will be checked
_temp Boolean if true then temporary (*.*~tmp) will be checked

Result

Type Description
Boolean True if file can be written.
2019/06/26 01:06