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
Unknown Object (File)
Sat, Dec 14, 4:55 PM
Unknown Object (File)
Sat, Dec 7, 12:26 PM
Unknown Object (File)
Wed, Nov 27, 7:02 PM
Unknown Object (File)
Nov 24 2024, 9:39 AM
Unknown Object (File)
Nov 22 2024, 11:37 AM
Unknown Object (File)
Nov 20 2024, 3:29 PM
Unknown Object (File)
Oct 27 2024, 6:50 PM
Unknown Object (File)
Oct 22 2024, 1:58 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 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.