Package org.myphotodiary.util

Examples of org.myphotodiary.util.FileNameFilter


  @Override
  public void restoreData(Configuration config) throws IOException {
    File backupDir = new File(config.getBackupDir());
    if (backupDir.exists() && (backupDir.isDirectory())) {
      FileNameFilter fnf = new FileNameFilter(config.getBackupExtensions());
      String[] files = backupDir.list(fnf);
      if (files.length > 0) {
        Arrays.sort(files);
        // Restore the last backup
        String fn  = files[files.length - 1];
View Full Code Here


  @Override
  public void restoreData(Configuration config) throws IOException {
    File backupDir = new File(config.getBackupDir());
    if (backupDir.exists() && (backupDir.isDirectory())) {
      FileNameFilter fnf = new FileNameFilter(config.getBackupExtensions());
      String[] files = backupDir.list(fnf);
      if (files.length > 0) {
        Arrays.sort(files);
        // Restore the last backup
        String fn  = files[files.length - 1];
View Full Code Here

TOP

Related Classes of org.myphotodiary.util.FileNameFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.