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
F15563923: D19521.id46677.diff
Wed, Apr 30, 10:32 AM
F15560180: D19521.id46683.diff
Tue, Apr 29, 1:21 PM
F15555169: D19521.id.diff
Mon, Apr 28, 10:11 AM
F15551570: D19521.diff
Sun, Apr 27, 5:28 PM
F15486085: D19521.diff
Thu, Apr 10, 4:52 AM
F15446384: D19521.diff
Mar 27 2025, 6:47 PM
F15421075: D19521.diff
Mar 21 2025, 8:50 PM
F15380889: D19521.id46677.diff
Mar 14 2025, 4:51 AM
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.