Skip to content

Expose the generated TempFile filename separately from its path - #300

Open
Aschenbath wants to merge 1 commit into
PyImageSearch:masterfrom
Aschenbath:fix/imutils-208-20261122-7c2d-30
Open

Aschenbath wants to merge 1 commit into
PyImageSearch:masterfrom
Aschenbath:fix/imutils-208-20261122-7c2d-30

Conversation

@Aschenbath

Copy link
Copy Markdown

Fixes #208.

Add TempFile.filename and compose the existing path from it, so callers can use the generated UUID filename without stripping the parent directory.

Validation: Ran a smoke check for default/custom/empty extensions, UUID names, path compatibility, uniqueness, actual file creation and cleanup. The same check fails on original source with missing filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

class TempFile in imutils/io not enough access to temporary file name without path

1 participant