Check-in [de206be857]
Overview
Comment: | also create CACHEDIR.TAG for data subdirs |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
de206be857512c582fdc64c561ac40a1 |
User & Date: | mario on 2022-09-16 05:02:43 |
Other Links: | manifest | tags |
Context
2022-10-26
| ||
05:14 | adapt to modularized pluginconf check-in: f66133e01d user: mario tags: trunk | |
2022-09-16
| ||
05:02 | also create CACHEDIR.TAG for data subdirs check-in: de206be857 user: mario tags: trunk | |
2022-03-01
| ||
08:37 | Add developer API support for shoutcast. check-in: e3d1d9a216 user: mario tags: trunk | |
Changes
Modified config.py from [19c9d0f2fd] to [1f95c979da].
︙ | ︙ | |||
254 255 256 257 258 259 260 261 262 263 264 265 266 267 | # check for subdir if (name.find("/") > 0): subdir = name[0:name.find("/")] subdir = self.datadir + "/" + subdir if (not os.path.exists(subdir)): os.mkdir(subdir) open(subdir+"/.nobackup", "w").close() file = self.datadir + "/" + name # encode as JSON try: data = json.dumps(data, indent=(4 if nice else None), sort_keys=True) except Exception as e: log.ERR("JSON encoding failed", e) return | > | 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | # check for subdir if (name.find("/") > 0): subdir = name[0:name.find("/")] subdir = self.datadir + "/" + subdir if (not os.path.exists(subdir)): os.mkdir(subdir) open(subdir+"/.nobackup", "w").close() open(subdir+"/CACHEDIR.TAG", "w").close() file = self.datadir + "/" + name # encode as JSON try: data = json.dumps(data, indent=(4 if nice else None), sort_keys=True) except Exception as e: log.ERR("JSON encoding failed", e) return |
︙ | ︙ |