I have a server that creates a directory every day with reports thrown in it. I’m looking to make some kind of web page calendar in which the date is linked to the directory automatically. The directory format stays the same, YYYYMMDD.
Why would you make a new directory for every day? You’ll end up with hundreds/thousands of directories. You don’t even need to make a different directory for each day, just put them all in one directory and pull the according file from it. Unless you are naming each group of files the same thing in each directory, which then you need to just append something like the date to the file name to make them unique within the directory.
Examples would be like sales_20140828.pdf, returns_20140828.pdf
I appreciate the reply but you’re looking to solve something that isn’t my question. This is how the directory structure is setup and is outside of my control.
I also don’t understand how having a daily directory with 8 files in it is worse than adding 8 more files every single day to one directory. You say I’ll have hundreds of directories, I’ll have 8x as many files in just one directory if I did it your way.
Anyone have any suggestions?