Examples of deleteFile()


Examples of org.openbravo.utils.FileUtility.deleteFile()

      throw new ServletException(e.getMessage());
    } catch (IOException ioe) {
      try {
        FileUtility f = new FileUtility(globalParameters.strFTPDirectory, fileName, false, true);
        if (f.exists())
          f.deleteFile();
      } catch (IOException ioex) {
        log4j.error("Error trying to delete temporary report file " + fileName + " : "
            + ioex.getMessage());
      }
    } finally {
View Full Code Here

Examples of org.pentaho.platform.api.repository2.unified.IUnifiedRepository.deleteFile()

    }

    IUnifiedRepository solutionRepository = PentahoSystem.get( IUnifiedRepository.class );
    RepositoryFile deletingFile = solutionRepository.getFile( RepositoryFile.SEPARATOR + "etc" //$NON-NLS-1$
      + RepositoryFile.SEPARATOR + "mondrian" + RepositoryFile.SEPARATOR + catalog.getName() ); //$NON-NLS-1$
    solutionRepository.deleteFile( deletingFile.getId(), true, "" ); //$NON-NLS-1$
    reInit( pentahoSession );
  }
}
View Full Code Here

Examples of org.syncany.tests.util.TestClient.deleteFile()

    File symlinkFile = clientA.getLocalFile("folder1/symlink-name");
    FileUtil.createSymlink("/does/not/exist", symlinkFile);
    clientA.up();

    // B
    clientB.deleteFile("folder1");
    clientB.down();
    assertTrue(FileUtil.exists(clientB.getLocalFile("folder1/symlink-name")));
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());

    // Tear down
View Full Code Here

Examples of pt.webdetails.cpf.repository.api.IRWAccess.deleteFile()

    // TODO:
    boolean isPreview = cdeFilePath.indexOf( "_tmp.cdfde" ) >= 0;
    if ( !isPreview ) {
      String cdeTempFilePath = cdeFilePath.replace( ".cdfde", "_tmp.cdfde" );
      access.deleteFile( cdeTempFilePath );

      String cdaTempFilePath = cdeFilePath.replace( ".cdfde", "_tmp.cda" );
      access.deleteFile( cdaTempFilePath );

      String wcdfTempFilePath = cdeFilePath.replace( ".cdfde", "_tmp.wcdf" );
View Full Code Here

Examples of pt.webdetails.cpf.repository.api.IUserContentAccess.deleteFile()

      IUserContentAccess access = contentAccessFactory.getUserContentAccess(null);

      if( !access.fileExists(file) && access.hasAccess(file, FileAccess.DELETE)) {
        throw new SaikuServiceException("Access to Repository has failed File does not exist or no delete right: " + file);
      }
      boolean ok = access.deleteFile(file);
      if (!ok) {
        throw new SaikuServiceException("Failed to write file: " + file);
      }
      return Response.ok().build();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.