Home
last modified time | relevance | path

Searched refs:localFolder (Results 1 – 2 of 2) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSFileDownloader.java178 String bucketName, String remoteFolderName, File localFolder) throws IOException { in recursiveCheckFolderFreshness() argument
179 Set<String> subFilenames = new HashSet<>(Arrays.asList(localFolder.list())); in recursiveCheckFolderFreshness()
185 if (!isFileFresh(new File(localFolder, subFilename), subRemoteFile)) { in recursiveCheckFolderFreshness()
193 bucketName, subRemoteFolder, new File(localFolder, subFolderName))) { in recursiveCheckFolderFreshness()
305 String bucketName, String remoteFolderName, File localFolder) throws IOException { in recursiveDownloadFolder() argument
307 if (!localFolder.exists()) { in recursiveDownloadFolder()
308 FileUtil.mkdirsRWX(localFolder); in recursiveDownloadFolder()
310 Set<String> subFilenames = new HashSet<>(Arrays.asList(localFolder.list())); in recursiveDownloadFolder()
317 bucketName, subRemoteFile.getName(), new File(localFolder, subFilename)); in recursiveDownloadFolder()
323 bucketName, subRemoteFolder, new File(localFolder, subFolderName)); in recursiveDownloadFolder()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DGCSFileDownloaderFuncTest.java301 File localFolder = mDownloader.downloadFile(remotePath); in testCheckFreshness_remoteFolderNotExist() local
302 Assert.assertFalse(mDownloader.isFresh(localFolder, remoteNotExistPath)); in testCheckFreshness_remoteFolderNotExist()
317 File localFolder = mDownloader.downloadFile(remotePath); in testCheckFreshness_folder() local
318 Assert.assertTrue(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder()
324 File localFolder = mDownloader.downloadFile(remotePath); in testCheckFreshness_folder_addFile() local
333 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_addFile()
339 File localFolder = mDownloader.downloadFile(remotePath); in testCheckFreshness_folder_removeFile() local
343 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_removeFile()
349 File localFolder = mDownloader.downloadFile(remotePath); in testCheckFreshness_folder_changeFile() local
351 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_changeFile()