WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a cron job that alerts me to modified files on a couple of WordPress installs. Two of them alerted me tonight to the creation of apparently empty folders like


Is there a scheduled job in WordPress to create the next month's upload directory on the last day of a month?

share|improve this question
I think these are created by user interaction and not automatically. – NW Tech May 1 '13 at 6:15
That's what I thought too. – jerrygarciuh May 1 '13 at 14:53
up vote 2 down vote accepted

I believe by default these folders are created by user interaction, however, it's possible that a plugin may be calling a function to create these monthly upload folders.

Note that using this function will create a subfolder in your Uploads folder corresponding to the queried month (or current month, if no $time argument is provided), if that folder is not already there. You don't have to upload anything in order for this folder to be created.

That's according to the the Codex > Function Reference > wp_upload_dir(). Maybe you could get more detailed logs to determine how they're created...I'm not real familiar with server administration.

share|improve this answer
+1, likely the reason. wp_upload_dir() can be used by many things to get information about paths and it does create those folders to have valid paths for current date. – Rarst May 1 '13 at 17:37
Thank you guys very much! – jerrygarciuh May 2 '13 at 2:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.