09a44b13b888eb07a70a0baef7717dac5a9caed4 braney Tue Dec 13 11:02:22 2016 -0800 some more changes per Hiram to get the trash cleaner to like BLAT result custom tracks. diff --git src/hg/lib/trashDir.c src/hg/lib/trashDir.c index c92185f..25e1e5f 100644 --- src/hg/lib/trashDir.c +++ src/hg/lib/trashDir.c @@ -9,31 +9,31 @@ #include "portable.h" #include "trashDir.h" static void trashDirFileExt(struct tempName *tn, char *dirName, char *base, char *suffix, boolean addDate) /* obtain a trash file name trash/dirName/base*.suffix */ { static struct hash *dirHash = NULL; char prefix[64]; char buffer[4096]; if (! dirHash) dirHash = newHash(0); if (addDate) { - safef(buffer, sizeof buffer, "%s.%d", dirName, dayOfYear()); + safef(buffer, sizeof buffer, "%s/%d", dirName, dayOfYear()); dirName = buffer; } /* already created this directory ? */ if (! hashLookup(dirHash,dirName)) { hashAddInt(dirHash, dirName, 1); /* remember, been here, done that */ mkdirTrashDirectory(dirName); } /* no need to duplicate the _ at the end of base, makeTempName is going * to add _ to the given base, some CGIs pass "base_" */ if (endsWith(base,"_")) { char *t = cloneString(base);