company logo

File :: canAccess - Check file accessibility

The function checks, whether the file can be opened with the required access mode and returns false, when this is not the case.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation overview

Implementation details

  1. Check accessibility for selected path and access mode
    bool File  :: canAccess (  )

    The function checks the accessibility for the defined file path and access mode.

  2. to list
  3. Check accessibility for path and access mode
    bool File  :: canAccess ( odaba::String &sFilePath, odaba::AccessModes eAccessMode )

    The function checks the accessibility for the file path and access mode passed in sFilePath and eAccessMode. The passed parameter are set as file properties path and accessMode.

    • sFilePath - Complete file path
    • eAccessMode - Access mode

      Access mode for a property handle or database.

  4. to list