synology_apm_repo.sdk.presentation.export_target module¶
On-disk export destinations: the .part staging name
LocalFileSink writes to, what is at a destination now, and whether a
single item or a folder may be exported there, with the user-facing
wording. Every check is synchronous: a stat() or two, not bulk I/O.
- synology_apm_repo.sdk.presentation.export_target.part_path_for(dst)¶
The staging path an export writes to before renaming to
dston success:<dst>.part.
- synology_apm_repo.sdk.presentation.export_target.destination_state(dst)¶
What is at
dstnow: a directory (or a symlink to one), nothing, or"file"for anything else, a dangling symlink included.
- synology_apm_repo.sdk.presentation.export_target.single_destination_problem(dst, *, force)¶
Why one item cannot be exported to
dst:"directory"when a directory is there (never replaceable),"exists"when anything else is there andforceis not set, elseNone.single_destination_messagewords it.
- synology_apm_repo.sdk.presentation.export_target.single_destination_message(dst, problem)¶
The user-facing wording of a
single_destination_problemresult.
- synology_apm_repo.sdk.presentation.export_target.folder_destination_problem(dst)¶
Why a folder cannot be exported into
dst(a file is there), orNone.