Skip to content

Conversation

@wowi42
Copy link
Contributor

@wowi42 wowi42 commented Dec 2, 2025

Fixes #1503 - Users can now specify a custom temporary directory for
file operations, allowing downloads of files larger than /tmp capacity.

Changes:

  • Add _temp_dir to ConnectorArguments and shell_argument_meta
  • Update files.download, files.get, files.put, and files.block to respect the _temp_dir global argument
  • Add _temp_dir parameter to make_unix_command() in connectors/util.py

The precedence order is:
operation-specific temp_dir > _temp_dir global argument > config.TEMP_DIR > TMPDIR env var > /tmp

  • Pull request is based on the default branch (3.x at this time)
  • Pull request includes tests for any new/updated operations/facts
  • Pull request includes documentation for any new/updated operations/facts
  • Tests pass (see scripts/dev-test.sh)
  • Type checking & code style passes (see scripts/dev-lint.sh)

  Fixes pyinfra-dev#1503 - Users can now specify a custom temporary directory for
  file operations, allowing downloads of files larger than /tmp capacity.

  Changes:
  - Add _temp_dir to ConnectorArguments and shell_argument_meta
  - Update files.download, files.get, files.put, and files.block to
    respect the _temp_dir global argument
  - Add _temp_dir parameter to make_unix_command() in connectors/util.py

  The precedence order is: operation-specific temp_dir > _temp_dir global
  argument > config.TEMP_DIR > TMPDIR env var > /tmp
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.

Can't download files larger than /tmp mount size

1 participant