Here’s an example to check if a directory is empty.
Example
package com.mkyong.file; import java.io.File; public class CheckEmptyDirectoryExample { public static void main(String[] args) { File file = new File("C:\\folder"); if(file.isDirectory()){ if(file.list().length>0){ System.out.println("Directory is not empty!"); }else{ System.out.println("Directory is empty!"); } }else{ System.out.println("This is not a directory"); } } }
Thanks for sharing this post. I really love it. sewing factory , sewing of ladies suits , sewing expert , sewing factory near me , lawn suits , pakistani lawn suits , pakistani lawn , buy pakistani lawn suits online , pakistani lawn suits online , pakistani lawn suits online sale
ReplyDeletenike shox for men
ReplyDeletenike foamposite
nike vapormax
supreme
yeezy shoes
off white clothing
supreme
ferragamo belt
balenciaga shoes
adidas zx flux
ce lien hypertexte Dolabuy Loewe lisez meilleur designer de répliques cliquez ici maintenant meilleur designer de répliques
ReplyDeleteinformative post my blog Visit Your URL why not find out more discover this info here go to website
ReplyDeleteblog Bottega Veneta Dolabuy i thought about this Source useful content replica gucci
ReplyDeletep6v86f6u72 d7x21q6m39 n5j51l3x43 y0s99d2c16 a8f67z4w61 j1f73i5h39
ReplyDelete