Home
last modified time | relevance | path

Searched refs:isDirectory (Results 1 – 25 of 56) sorted by relevance

123

/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
DFileURLConnection.java60 boolean isDirectory = false; field in FileURLConnection
82 isDirectory = file.isDirectory(); in connect()
83 if (isDirectory) { in connect()
118 if (!isDirectory) { in initializeHeaders()
191 if (isDirectory) { in getInputStream()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixCopyFile.java434 if (targetAttrs.isDirectory()) { in move()
441 if (targetAttrs.isDirectory() && in move()
462 if (sourceAttrs.isDirectory()) { in move()
478 if (sourceAttrs.isDirectory()) { in move()
487 if (sourceAttrs.isDirectory()) { in move()
494 if (sourceAttrs.isDirectory() && in move()
553 if (targetAttrs.isDirectory()) { in copy()
560 if (targetAttrs.isDirectory() && in copy()
571 if (sourceAttrs.isDirectory()) { in copy()
DUnixFileAttributes.java157 public boolean isDirectory() { in isDirectory() method in UnixFileAttributes
294 public boolean isDirectory() { in isDirectory() method in UnixFileAttributes.UnixAsBasicFileAttributes
295 return attrs.isDirectory(); in isDirectory()
DLinuxDosFileAttributeView.java143 public boolean isDirectory() { in readAttributes() method
144 return attrs.isDirectory(); in readAttributes()
DAbstractBasicFileAttributeView.java153 builder.add(IS_DIRECTORY_NAME, attrs.isDirectory()); in addRequestedBasicAttributes()
/libcore/ojluni/src/test/java/nio/file/attribute/
DBasicFileAttributeViewTest.java54 check(attrs.isDirectory(), "is a directory"); in checkAttributesOfDirectory()
70 check(!attrs.isDirectory(), "is not a directory"); in checkAttributesOfFile()
102 check(!attrs.isDirectory(), "is a directory"); in checkAttributesOfLink()
/libcore/luni/src/test/java/libcore/dalvik/system/
DClassLoaderTestSupport.java57 if (dir == null || !dir.isDirectory()) { in cleanUpDir()
65 if (file.isDirectory()) { in cleanUpDir()
DInMemoryDexClassLoaderTest.java62 if (!dir.isDirectory()) { in cleanUpDir()
67 if (file.isDirectory()) { in cleanUpDir()
/libcore/luni/src/test/java/libcore/java/nio/file/
DDefaultSecureDirectoryStreamTest.java107 file -> Files.isDirectory(file))) { in testIterator()
117 file -> Files.isDirectory(file))) { in testIterator_calledTwice()
129 file -> Files.isDirectory(file)); in testIterator_afterClose()
403 assertTrue(fileAttributeView.readAttributes().isDirectory()); in test_getFileAttributeView()
430 assertTrue(fileAttributeView.readAttributes().isDirectory()); in test_getFileAttributeView_Path()
437 assertFalse(fileAttributeView.readAttributes().isDirectory()); in test_getFileAttributeView_Path()
447 assertTrue(fileAttributeView.readAttributes().isDirectory()); in test_getFileAttributeView_Path()
492 assertFalse(fileAttributeView.readAttributes().isDirectory()); in test_getFileAttributeView_Path_LinkOptions()
DFiles2Test.java298 assertFalse(Files.isDirectory(filesSetup.getDataFilePath())); in test_isDirectory()
300 assertFalse(Files.isDirectory(filesSetup.getTestPath())); in test_isDirectory()
307 assertTrue(Files.isDirectory(dirPath)); in test_isDirectory()
313 Files.isDirectory(null); in test_isDirectory_NPE()
765 assertTrue(Files.isDirectory(dir4)); in test_walkFileTree_maximumDepth()
863 Stream<Path> pathStream = Files.find(rootDir, 2, (path, attr) -> Files.isDirectory(path)); in test_find()
873 pathStream = Files.find(rootDir, 0, (path, attr) -> Files.isDirectory(path)); in test_find()
879 Files.find(rootDir, -1, (path, attr) -> Files.isDirectory(path)); in test_find()
907 Files.find(null, 2, (path, attr) -> Files.isDirectory(path)); in test_find_NPE()
912 Files.find(rootDir, (Integer)null, (path, attr) -> Files.isDirectory(path)); in test_find_NPE()
[all …]
DDefaultFileSystemProviderTest.java404 assertFalse(Files.isDirectory(newDirectory)); in test_createDirectory()
409 assertTrue(Files.isDirectory(newDirectory)); in test_createDirectory()
764 file -> Files.isDirectory(file))) { in test_newDirectoryStream$Path$Filter()
784 return Files.isDirectory(entry); in test_newDirectoryStream$Filter_Exception()
810 return Files.isDirectory(entry); in test_newDirectoryStream$Filter_NPE()
DFilesSetup.java127 if (Files.isDirectory(path)) { in delete()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DBasicFileAttributes.java100 boolean isDirectory(); in isDirectory() method
/libcore/dalvik/src/main/java/dalvik/system/
DDexPathList.java376 if (file.isDirectory()) { in makeDexElements()
507 } else if (file.isDirectory()) { in makePathElements()
681 this.pathIsDirectory = (path == null) ? null : path.isDirectory(); in Element()
702 public Element(File dir, boolean isDirectory, File zip, DexFile dexFile) { in Element() argument
710 if (isDirectory && (zip != null || dexFile != null)) { in Element()
720 return path.isDirectory() ? null : path.getAbsolutePath(); in getDexPath()
785 if (path != null && path.isDirectory()) { in findResource()
/libcore/luni/src/test/java/libcore/java/io/
DOldFileTest.java40 if (f.isDirectory()) {
53 if (f.isDirectory()) in deleteTempFolder()
/libcore/ojluni/src/main/java/java/io/
DFile.java640 private static String slashify(String path, boolean isDirectory) { in slashify() argument
646 if (!p.endsWith("/") && isDirectory) in slashify()
682 getAbsoluteFile().isDirectory())); in toURL()
728 String sp = slashify(f.getPath(), f.isDirectory()); in toURI()
835 public boolean isDirectory() { in isDirectory() method in File
/libcore/luni/src/test/java/libcore/java/sql/
DConnectionTest.java53 if (tmpDir.isDirectory()) { in getConnectionURL()
DOldSQLTest.java40 if (tmpDir.isDirectory()) { in getSQLiteConnection()
/libcore/ojluni/annotations/hiddenapi/java/io/
DFile.java102 private static java.lang.String slashify(java.lang.String path, boolean isDirectory) { in slashify() argument
127 public boolean isDirectory() { in isDirectory() method in File
/libcore/metrictests/memory/apps/src/libcore/heapdumper/
DAbstractMetricInstrumentation.java107 if (!dir.isDirectory()) { in resolveOutputDirectory()
/libcore/support/src/test/java/tests/support/
DSupport_TestWebData.java115 testDir = file.isDirectory(); in Support_TestWebData()
/libcore/ojluni/src/main/java/java/nio/file/
DCopyMoveHelper.java122 if (attrs.isDirectory()) { in copyToForeignTarget()
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java58 if (tmpDir.isDirectory()) { in loadDriver()
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DZipEntry.java152 public boolean isDirectory() { in isDirectory() method in ZipEntry
/libcore/ojluni/annotations/mmodule/java/util/zip/
DZipEntry.annotated.java87 public boolean isDirectory() { throw new RuntimeException("Stub!"); } in isDirectory() method in ZipEntry

123