[RSS Feed/News] Extending XF\Util\File is difficult

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Is some scenarios I'd need temp files to be created in a different directory than the default and cleaned up automatically.

XF\Util\File provides almost everything needed to achieve that - except it doesn't allow to override the directory.

It would be relatively easy to override getTempDir in a child class and use that instead of the original, but unfortunately all methods seem to use self - so the overriding method would not get called.

So the only options (that I can...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom