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
F15507976: D11729.diff
Wed, Apr 16, 12:48 AM
F15500303: D11729.id28244.diff
Sun, Apr 13, 5:19 PM
F15475218: D11729.id28244.diff
Sun, Apr 6, 5:40 PM
F15463230: D11729.id28244.diff
Tue, Apr 1, 9:36 PM
F15425931: D11729.id28244.diff
Sun, Mar 23, 6:40 AM
F15424389: D11729.id28244.diff
Sat, Mar 22, 9:58 PM
F15421034: D11729.id28268.diff
Fri, Mar 21, 8:29 PM
F15420855: D11729.id28267.diff
Fri, Mar 21, 6:20 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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 4434
Build 4448: [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.