CBFS Direct 2020 Python Edition

Questions / Feedback?

delete_file Method

Deletes a file by passing the request directly to the filesystem.

Syntax

def delete_file(file_name: str, close_open_handles: bool) -> None: ...

Remarks

This method should be used instead of the Windows API's DeleteFile function to delete the file specified by FileName when some other process has it open exclusively, or when the application doesn't have sufficient security rights/permissions to access it in a "standard" way.

If CloseOpenHandles is True, this method closes and invalidates all opened handles to the file before deleting it.

 
 
Copyright (c) 2021 Callback Technologies, Inc. - All rights reserved.
CBFS Direct 2020 Python Edition - Version 20.0 [Build 7836]