public synchronized boolean directoryExists(){
  return directory.exists();
}

public synchronized boolean directoryExists ( ) { return directory . exists ( ) ; }
returns true if storage directory exists , false otherwise .
