Page MenuHomePhabricator

Allow callers to choose which directory a "TempFile" is created in
ClosedPublic

Authored by epriestley on Jul 20 2018, 5:28 PM.
Tags
None
Referenced Files
F18817682: D19521.diff
Oct 21 2025, 5:26 PM
F18804071: D19521.id46683.diff
Oct 18 2025, 5:46 AM
F18618173: D19521.id46677.diff
Sep 14 2025, 11:20 PM
F18566692: D19521.id.diff
Sep 9 2025, 2:50 PM
F18502980: D19521.diff
Sep 4 2025, 10:47 PM
F18049578: D19521.id46677.diff
Aug 3 2025, 4:38 PM
F18049383: D19521.id46683.diff
Aug 3 2025, 4:07 PM
F18049126: D19521.id.diff
Aug 3 2025, 3:31 PM
Subscribers
None

Details

Summary

Ref T13167. I'd like to buffer a specific large file (a large database export) to a large volume, instead of to "/tmp" on the root volume.

To support this, let callers optionally choose which directory to use as "/tmp". If they don't specfify, we continue using sys_get_temp_dir(), often /tmp.

Test Plan

See next change.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley added a child revision: Restricted Differential Revision.Jul 20 2018, 5:30 PM
This revision is now accepted and ready to land.Jul 20 2018, 6:04 PM
This revision was automatically updated to reflect the committed changes.