public void dir(){
        int cf = 0, cd = 0;
        long cbytes = 0;
        
        try{
            if( file.isDirectory() ){
                File files[] = file.listFiles();
                
                for( File fi : files){
                    System.out.print( new Date( fi.lastModified() ) );
                    
                    if( fi.isDirectory() ){
                        System.out.print("\t<DIR>\t\t");
                        cd++;
                    }
                    if( fi.isFile() ){
                        System.out.print("\t     \t");
                        cf++;
                        cbytes += fi.length();
                        System.out.print( fi.length() );
                    }
                    
                    System.out.println(" " + fi.getName());
                        
                }
                
                System.out.printf("(%d) Files\n(%d) Dirs\nTotal Bytes %d Free Space %d",
                        cf,cd,cbytes,file.getFreeSpace());
            }
        }
        catch(NullPointerException e){
            System.out.println("Primero hay que configurar un archivo");
        }
    }