is it a known behavior that fileDelete will work on directories (empty) as well as files? i wouldn't have expected it to work, and have never even given it any thought, but it seems that it's so. was just wondering if i just missed the memo. this is on windows fwiw. have confirmed it under cf10 as well as lucee 5.x
b
bdw429s
05/22/2023, 4:23 PM
Good question. Under the hood, a
File
object in Java can refer to either a file or a directory, but I'm curious if the behavior you've pointed out was by design or on accident, lol