Home
last modified time | relevance | path

Searched refs:isDirectory (Results 1 – 25 of 54) 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/tzdata/shared2/src/main/libcore/tzdata/shared2/
DFileUtils.java79 } else if (!dirToCheck.isDirectory()) { in ensureDirectoriesExist()
86 if (!directory.isDirectory()) { in makeDirectoryWorldAccessible()
131 if (toDelete.isDirectory()) { in deleteRecursive()
133 if (file.isDirectory() && !FileUtils.isSymlink(file)) { in deleteRecursive()
DTimeZoneDistro.java126 if (entry.isDirectory()) { in extractZipSafely()
/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/dalvik/src/main/java/dalvik/system/
DDexPathList.java316 if (file.isDirectory()) { in makeDexElements()
441 } else if (file.isDirectory()) { in makePathElements()
599 public Element(File dir, boolean isDirectory, File zip, DexFile dexFile) { in Element() argument
606 if (isDirectory && (zip != null || dexFile != null)) { in Element()
623 return path.isDirectory() ? null : path.getAbsolutePath(); in getDexPath()
634 return (path.isDirectory() ? "directory \"" : "zip file \"") + path + "\""; in toString()
649 if (path == null || path.isDirectory()) { in maybeInit()
690 if (path != null && path.isDirectory()) { in findResource()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DBasicFileAttributes.java100 boolean isDirectory(); in isDirectory() method
/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/tzdata/shared2/src/test/libcore/tzdata/shared2/
DTimeZoneDistroTest.java128 if (!zipEntry.isDirectory()) { in addZipEntry()
148 assertTrue(dir + " directory expected to exist", dir.exists() && dir.isDirectory()); in assertDirsExist()
DFileUtilsTest.java268 assertTrue(dir.isDirectory()); in testCreateEmptyFile_isDir()
275 assertTrue(dir.isDirectory()); in testCreateEmptyFile_isDir()
333 assertTrue(dir.exists() && dir.isDirectory() && dir.canRead() && dir.canExecute()); in assertDirExistsAndIsAccessible()
/libcore/luni/src/test/java/libcore/java/io/
DOldFileTest.java40 if (f.isDirectory()) {
53 if (f.isDirectory()) in deleteTempFolder()
/libcore/luni/src/test/java/libcore/java/sql/
DConnectionTest.java53 if (tmpDir.isDirectory()) { in getConnectionURL()
DOldSQLTest.java40 if (tmpDir.isDirectory()) { in getSQLiteConnection()
/libcore/ojluni/src/main/java/java/io/
DFile.java635 private static String slashify(String path, boolean isDirectory) { in slashify() argument
641 if (!p.endsWith("/") && isDirectory) in slashify()
675 getAbsoluteFile().isDirectory())); in toURL()
721 String sp = slashify(f.getPath(), f.isDirectory()); in toURI()
829 public boolean isDirectory() { in isDirectory() method in File
/libcore/luni/src/test/java/dalvik/system/
DInMemoryDexClassLoaderTest.java57 if (!dir.isDirectory()) { in cleanUpDir()
62 if (file.isDirectory()) { in cleanUpDir()
DDexClassLoaderTest.java68 if (!dir.isDirectory()) { in cleanUpDir()
73 if (file.isDirectory()) { in cleanUpDir()
/libcore/support/src/test/java/tests/support/
DSupport_TestWebData.java115 testDir = file.isDirectory(); in Support_TestWebData()
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java58 if (tmpDir.isDirectory()) { in loadDriver()
/libcore/ojluni/src/main/java/java/nio/file/
DCopyMoveHelper.java122 if (attrs.isDirectory()) { in copyToForeignTarget()

123