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
F17741126: D19521.diff
Mon, Jul 21, 8:11 AM
Unknown Object (File)
Jun 1 2025, 9:58 AM
Unknown Object (File)
May 31 2025, 2:08 PM
Unknown Object (File)
May 30 2025, 9:41 AM
Unknown Object (File)
May 29 2025, 5:07 PM
Unknown Object (File)
Apr 30 2025, 10:32 AM
Unknown Object (File)
Apr 29 2025, 1:21 PM
Unknown Object (File)
Apr 28 2025, 10:11 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
Branch
tmp1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20479
Build 27816: Run Core Tests
Build 27815: arc lint + arc unit

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.