Page MenuHomePhabricator

Create log directory if it does not exist
ClosedPublic

Authored by joshuaspence on Feb 10 2015, 7:33 AM.
Tags
None
Referenced Files
F18619342: D11729.id28265.diff
Sep 15 2025, 2:17 AM
F18601756: D11729.id28267.diff
Sep 13 2025, 1:24 PM
F18599940: D11729.id.diff
Sep 13 2025, 8:38 AM
F18598859: D11729.diff
Sep 13 2025, 6:01 AM
F18598856: D11729.diff
Sep 13 2025, 6:00 AM
F18593689: D11729.diff
Sep 12 2025, 3:40 PM
F18587472: D11729.id.diff
Sep 11 2025, 9:30 PM
F18049813: D11729.id28244.diff
Aug 3 2025, 5:23 PM
Subscribers

Details

Summary

Create log directory if it does not exist. In particular, I want to check log.access.path if it does not exist.

Test Plan

Saw the log directory created.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Create log directory if it does not exist.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence edited edge metadata.
epriestley edited edge metadata.
epriestley added inline comments.
src/filesystem/PhutilDeferredLog.php
71

Maybe consider passing ..., 0755, true to try to create it recursively.

This revision is now accepted and ready to land.Feb 10 2015, 2:21 PM

Do you think that maybe the directory creation should happen in write()?

joshuaspence edited edge metadata.

Recursively create directory

Since setFile() exists and could change the file location, probably.

This revision was automatically updated to reflect the committed changes.