/external/apache-commons-io/src/test/java/org/apache/commons/io/filefilter/ |
D | AbstractFilterTest.java | 82 assertFiltering(filter, new File("foo").toPath(), true); in assertFooBarFileFiltering() 83 assertFiltering(filter, new File("foo").toPath(), true); in assertFooBarFileFiltering() 84 assertFiltering(filter, new File("bar").toPath(), true); in assertFooBarFileFiltering() 85 assertFiltering(filter, new File("fred").toPath(), false); in assertFooBarFileFiltering() 92 assertFiltering(filter, new File("foo").toPath(), true); in assertFooBarFileFiltering() 93 assertFiltering(filter, new File("bar").toPath(), true); in assertFooBarFileFiltering() 94 assertFiltering(filter, new File("FOO").toPath(), false); in assertFooBarFileFiltering() 95 assertFiltering(filter, new File("BAR").toPath(), false); in assertFooBarFileFiltering() 102 assertFiltering(filter, new File("foo").toPath(), true); in assertFooBarFileFiltering() 103 assertFiltering(filter, new File("bar").toPath(), true); in assertFooBarFileFiltering() [all …]
|
D | WildcardFileFilterTest.java | 42 assertFiltering(filter, new File("log.txt").toPath(), true); in testWildcard() 43 assertFiltering(filter, new File("log.TXT").toPath(), false); in testWildcard() 49 assertFiltering(filter, new File("log.txt").toPath(), true); in testWildcard() 50 assertFiltering(filter, new File("log.TXT").toPath(), false); in testWildcard() 56 assertFiltering(filter, new File("log.txt").toPath(), true); in testWildcard() 57 assertFiltering(filter, new File("log.TXT").toPath(), true); in testWildcard() 63 assertFiltering(filter, new File("log.txt").toPath(), true); in testWildcard() 64 assertFiltering(filter, new File("log.TXT").toPath(), WINDOWS); in testWildcard() 70 assertFiltering(filter, new File("log.txt").toPath(), true); in testWildcard() 71 assertFiltering(filter, new File("log.TXT").toPath(), false); in testWildcard() [all …]
|
D | FileFilterTest.java | 63 final Path oldPath = oldFile.toPath(); in testAgeFilter() 66 final Path newPath = newFile.toPath(); in testAgeFilter() 71 …BufferedOutputStream output1 = new BufferedOutputStream(Files.newOutputStream(oldFile.toPath()))) { in testAgeFilter() 84 …ufferedOutputStream output = new BufferedOutputStream(Files.newOutputStream(reference.toPath()))) { in testAgeFilter() 101 …(BufferedOutputStream output = new BufferedOutputStream(Files.newOutputStream(newFile.toPath()))) { in testAgeFilter() 217 final Path readOnlyPath = readOnlyFile.toPath(); in testCanRead() 221 …eredOutputStream output = new BufferedOutputStream(Files.newOutputStream(readOnlyFile.toPath()))) { in testCanRead() 237 final Path readOnlyPath = readOnlyFile.toPath(); in testCanWrite() 241 …eredOutputStream output = new BufferedOutputStream(Files.newOutputStream(readOnlyFile.toPath()))) { in testCanWrite() 284 final Path txtPath = txtFile.toPath(); in testDeprecatedWildcard() [all …]
|
D | RegexFileFilterTest.java | 98 assertFiltering(filter, new File("Test.java").toPath(), true); in testRegex() 99 assertFiltering(filter, new File("test-10.java").toPath(), true); in testRegex() 100 assertFiltering(filter, new File("test-.java").toPath(), false); in testRegex() 108 assertFiltering(filter, new File("Test.java").toPath(), true); in testRegex() 109 assertFiltering(filter, new File("test.java").toPath(), true); in testRegex() 110 assertFiltering(filter, new File("tEST.java").toPath(), false); in testRegex() 118 assertFiltering(filter, new File("Test.java").toPath(), true); in testRegex() 119 assertFiltering(filter, new File("test.java").toPath(), true); in testRegex() 120 assertFiltering(filter, new File("tEST.java").toPath(), true); in testRegex() 128 assertFiltering(filter, new File("Test.java").toPath(), true); in testRegex() [all …]
|
/external/turbine/javatests/com/google/turbine/main/ |
D | MainTest.java | 83 Path sourcesa = temporaryFolder.newFile("sourcesa.jar").toPath(); in sourceJarClash() 88 Path sourcesb = temporaryFolder.newFile("sourcesb.jar").toPath(); in sourceJarClash() 93 Path output = temporaryFolder.newFile("output.jar").toPath(); in sourceJarClash() 109 Path src = temporaryFolder.newFile("package-info.jar").toPath(); in packageInfo() 112 Path output = temporaryFolder.newFile("output.jar").toPath(); in packageInfo() 126 Path srcjar = temporaryFolder.newFile("lib.srcjar").toPath(); in packageInfoSrcjar() 132 Path output = temporaryFolder.newFile("output.jar").toPath(); in packageInfoSrcjar() 163 Path srcjar = temporaryFolder.newFile("lib.srcjar").toPath(); in moduleInfos() 171 Path src = temporaryFolder.newFile("module-info.java").toPath(); in moduleInfos() 174 Path output = temporaryFolder.newFile("output.jar").toPath(); in moduleInfos() [all …]
|
D | ReducedClasspathTest.java | 91 libcJdeps = temporaryFolder.newFile("libc.jdeps").toPath(); in setup() 106 Path lib = temporaryFolder.newFile(jarPath).toPath(); in createLibrary() 118 Path src = temporaryFolder.newFile("Test.java").toPath(); in succeedsWithoutFallingBack() 127 Path output = temporaryFolder.newFile("output.jar").toPath(); in succeedsWithoutFallingBack() 152 Path src = temporaryFolder.newFile("Test.java").toPath(); in succeedsAfterFallingBack() 162 Path output = temporaryFolder.newFile("output.jar").toPath(); in succeedsAfterFallingBack() 181 Path src = temporaryFolder.newFile("Test.java").toPath(); in bazelFallback() 191 Path output = temporaryFolder.newFile("output.jar").toPath(); in bazelFallback() 192 Path jdeps = temporaryFolder.newFile("output.jdeps").toPath(); in bazelFallback() 223 Path src = temporaryFolder.newFile("Test.java").toPath(); in noFallbackWithoutDirectJarsAndJdeps() [all …]
|
/external/mockftpserver/tags/2.0-rc1/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 54 getFileSystem().rename(fromPath, toPath); in handle() 57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 54 getFileSystem().rename(fromPath, toPath); in handle() 57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 54 getFileSystem().rename(fromPath, toPath); in handle() 57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/mockftpserver/tags/2.0/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 54 getFileSystem().rename(fromPath, toPath); in handle() 57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 55 getFileSystem().rename(fromPath, toPath); in handle() 58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 55 getFileSystem().rename(fromPath, toPath); in handle() 58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 55 getFileSystem().rename(fromPath, toPath); in handle() 58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 55 getFileSystem().rename(fromPath, toPath); in handle() 58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 55 getFileSystem().rename(fromPath, toPath); in handle() 58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 55 getFileSystem().rename(fromPath, toPath); in handle() 58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 55 getFileSystem().rename(fromPath, toPath); in handle() 58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/command/ |
D | RntoCommandHandler.java | 43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local 47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle() 50 String parentPath = getFileSystem().getParent(toPath); in handle() 55 getFileSystem().rename(fromPath, toPath); in handle() 58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
|
/external/apache-commons-io/src/main/java/org/apache/commons/io/ |
D | FileUtils.java | 318 …try (InputStream inputStream = new CheckedInputStream(Files.newInputStream(file.toPath()), checksu… in checksum() 412 …tStream input1 = Files.newInputStream(file1.toPath()); InputStream input2 = Files.newInputStream(f… in contentEquals() 463 try (Reader input1 = new InputStreamReader(Files.newInputStream(file1.toPath()), charset); in contentEqualsIgnoreEOL() 464 Reader input2 = new InputStreamReader(Files.newInputStream(file2.toPath()), charset)) { in contentEqualsIgnoreEOL() 847 Files.copy(srcFile.toPath(), destFile.toPath(), copyOptions); in copyFile() 865 try (InputStream fis = Files.newInputStream(input.toPath())) { in copyFile() 1063 final Path path = destination.toPath(); in copyURLToFile() 1182 Files.delete(file.toPath()); in delete() 1344 deleteCounters = PathUtils.delete(file.toPath(), PathUtils.EMPTY_LINK_OPTION_ARRAY, in forceDelete() 1506 return file != null && Files.isDirectory(file.toPath(), options); in isDirectory() [all …]
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/ |
D | FileUtilsDeleteDirectoryBaseTest.java | 95 Files.createSymbolicLink(symlinkDirectory.toPath(), randomDirectory.toPath()); in testDeleteDirWithASymlinkDir2() 151 Files.createSymbolicLink(linkToC.toPath(), cFile.toPath()); in testDeleteInvalidLinks() 154 Files.createSymbolicLink(linkToB.toPath(), bFile.toPath()); in testDeleteInvalidLinks() 212 Files.createSymbolicLink(symlinkDirectory.toPath(), randomDirectory.toPath()); in testDeleteParentSymlink2() 217 Files.createSymbolicLink(symlinkParentDirectory.toPath(), realParent.toPath()); in testDeleteParentSymlink2()
|
D | FileUtilsFileNewerTest.java | 57 …fferedOutputStream output1 = new BufferedOutputStream(Files.newOutputStream(testFile1.toPath()))) { in setUp() 63 …ufferedOutputStream output = new BufferedOutputStream(Files.newOutputStream(testFile2.toPath()))) { in setUp() 83 final FileTime fileLastModified = Files.getLastModifiedTime(testFile1.toPath()); in testIsFileNewer() 115 Files.setLastModifiedTime(temporaryFile.toPath(), fileTime); in testIsFileNewer() 116 …assertEquals(fileTime, Files.getLastModifiedTime(temporaryFile.toPath()), "The temporary file hasn… in testIsFileNewer()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/examples/ |
D | ParameterizedExpanderTest.java | 74 try (OutputStream o = Files.newOutputStream(dummy.toPath())) { in setUp() 78 .createArchiveOutputStream(format, Files.newOutputStream(archive.toPath()))) { in setUp() argument 109 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in inputStreamVersion() 117 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in inputStreamVersionWithAutoDetection() 125 try (SeekableByteChannel c = FileChannel.open(archive.toPath(), StandardOpenOption.READ)) { in channelVersion() 133 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath())); in archiveInputStreamVersion() 151 try (InputStream is = Files.newInputStream(new File(resultDir, fileName).toPath())) { in assertHelloWorld() argument
|
D | ExpanderTest.java | 75 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in sevenZInputStreamVersion() 83 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in sevenZInputStreamVersionWithAutoDetection() 91 try (SeekableByteChannel c = FileChannel.open(archive.toPath(), StandardOpenOption.READ)) { in sevenZChannelVersion() 157 try (OutputStream o = Files.newOutputStream(dummy.toPath())) { in setup7z() 180 try (OutputStream o = Files.newOutputStream(dummy.toPath())) { in setupZip() 184 .createArchiveOutputStream("zip", Files.newOutputStream(archive.toPath()))) { in setupZip() argument 204 try (OutputStream o = Files.newOutputStream(dummy.toPath())) { in setupZip() 208 .createArchiveOutputStream("zip", Files.newOutputStream(archive.toPath()))) { in setupZip() argument 227 try (InputStream is = Files.newInputStream(new File(resultDir, fileName).toPath())) { in assertHelloWorld() argument
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/test/ |
D | TestUtils.java | 56 assertEqualContent(b0, file.toPath()); in assertEqualContent() 89 assertEqualContent(c0, file.toPath()); in assertEqualContent() 125 try (InputStream is0 = Files.newInputStream(f0.toPath())) { in assertEqualContent() 126 try (InputStream is1 = Files.newInputStream(f1.toPath())) { in assertEqualContent() 174 new BufferedOutputStream(Files.newOutputStream(file.toPath()))) { in createFile() 183 …tput = new PrintWriter(new OutputStreamWriter(Files.newOutputStream(file.toPath()), StandardCharse… in createLineBasedFile() 197 …ry (BufferedOutputStream output = new BufferedOutputStream(Files.newOutputStream(file.toPath()))) { in generateTestData()
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/file/ |
D | PathUtilsContentEqualsTest.java | 45 final Path path1 = new File(temporaryFolder, getName()).toPath(); in testDirectoryAndFileContentEquals() 46 final Path path2 = new File(temporaryFolder, getName() + "2").toPath(); in testDirectoryAndFileContentEquals() 101 final Path path1 = new File(temporaryFolder, getName()).toPath(); in testDirectoryContentEquals() 102 final Path path2 = new File(temporaryFolder, getName() + "2").toPath(); in testDirectoryContentEquals() 157 final Path path1 = new File(temporaryFolder, getName()).toPath(); in testFileContentEquals() 158 final Path path2 = new File(temporaryFolder, getName() + "2").toPath(); in testFileContentEquals() 169 …tion.class, () -> PathUtils.fileContentEquals(temporaryFolder.toPath(), temporaryFolder.toPath())); in testFileContentEquals()
|