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
F13261307: D11729.diff
Mon, May 27, 12:53 AM
F13251585: D11729.id.diff
Sat, May 25, 12:13 AM
F13251181: D11729.id28267.diff
Fri, May 24, 8:54 PM
F13248640: D11729.id28265.diff
Fri, May 24, 3:38 AM
F13243887: D11729.diff
Thu, May 23, 4:19 AM
F13239049: D11729.id.diff
Tue, May 21, 11:43 PM
F13238943: D11729.diff
Tue, May 21, 10:49 PM
F13234929: D11729.id28267.diff
Tue, May 21, 3:57 AM
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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 4419
Build 4433: [Placeholder Plan] Wait for 30 Seconds

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.