Searched refs:localFolder (Results 1 – 2 of 2) sorted by relevance
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSFileDownloader.java | 181 String bucketName, String remoteFolderName, File localFolder) throws IOException { in recursiveCheckFolderFreshness() argument 182 Set<String> subFilenames = new HashSet<>(Arrays.asList(localFolder.list())); in recursiveCheckFolderFreshness() 188 if (!isFileFresh(new File(localFolder, subFilename), subRemoteFile)) { in recursiveCheckFolderFreshness() 195 File subFolder = new File(localFolder, subFolderName); in recursiveCheckFolderFreshness() 196 if (new File(localFolder, subFolderName).exists() in recursiveCheckFolderFreshness() 197 && !new File(localFolder, subFolderName).isDirectory()) { in recursiveCheckFolderFreshness() 199 subFolder = new File(localFolder, subFolderName + "_folder"); in recursiveCheckFolderFreshness() 335 String bucketName, String remoteFolderName, File localFolder) throws IOException { in recursiveDownloadFolder() argument 337 if (!localFolder.exists()) { in recursiveDownloadFolder() 338 FileUtil.mkdirsRWX(localFolder); in recursiveDownloadFolder() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | GCSFileDownloaderFuncTest.java | 306 File localFolder = mDownloader.downloadFile(remotePath); in testCheckFreshness_remoteFolderNotExist() local 307 Assert.assertFalse(mDownloader.isFresh(localFolder, remoteNotExistPath)); in testCheckFreshness_remoteFolderNotExist() 322 File localFolder = mDownloader.downloadFile(remotePath); in testCheckFreshness_folder() local 323 Assert.assertTrue(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder() 329 File localFolder = mDownloader.downloadFile(remotePath); in testCheckFreshness_folder_addFile() local 338 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_addFile() 344 File localFolder = mDownloader.downloadFile(remotePath); in testCheckFreshness_folder_removeFile() local 348 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_removeFile() 354 File localFolder = mDownloader.downloadFile(remotePath); in testCheckFreshness_folder_changeFile() local 356 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_changeFile()
|