Comment detail

指定されたフォルダ以下のゴミ掃除 (Nested Flatten)

特にひねりなしです。

1
2
3
4
5
6
7
def dir = new File("c:/work")

dir.eachFileRecurse{
    if( it.file && it.name.endsWith("~") ){
        file.delete()
    }
}

Index

Feed

Other

Link

Pathtraq

loading...