filesystem
messageflux.utils.filesystem
AtomicMoveException
Bases: KwargsException
an exception which is raised when atomic move fails
atomic_move
moves a file atomically (hopefully) from src to dest, using lock_filename as lockfile
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
src |
str
|
the source file path |
required |
dest |
str
|
the destination file path |
required |
lock_filename |
str
|
the lockfile path |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if succeeded, False otherwise |