摘要:
Ref:How to get file name without the extension?Normally,there are two ways to implements this:use the library or the regular expression.here I use the... 阅读全文
摘要:
Ref:check whether a file or directoryFirst, make sure the path exists by using:new File(path).exists();Then check whether it a directory using:1 new F... 阅读全文