module documentation
License: Apache 2.0
VERSION INFO:
$Repo: async_example_program $Author: Anders Wiklund $Date: 2023-09-29 03:00:57 $Rev: 10
| Async Function | calculate |
Calculate the MD5 checksum (see Internet RFC 1321) for the specified filename and return the result as a hex string. |
| Function | check |
Return command file existence in the current program path. |
| Function | is |
Return file availability status. |
| Constant | FILE |
File attribute normal flag. |
| Constant | FILE |
File share read flag. |
| Constant | GENERIC |
Generic write flag. |
| Constant | OPEN |
Open existing flag. |
Return file availability status.
When the file does not exist, it is opened or used by another process, it's not available. The detection is handled using the local operating system primitives.
- It is currently implemented for the following platforms:
- Linux (using lsof) platforms.
- Windows (using Kernel32 CreateFileW) platforms.
| Parameters | |
filename:str | Current file (with a path). |
| Returns | |
bool | File availability status. |