Home
last modified time | relevance | path

Searched refs:dirPath (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesTest.java181 Path dirPath = filesSetup.getPathInTestDir("dir1/dir2/dir3"); in test_createDirectories() local
182 assertFalse(Files.exists(dirPath)); in test_createDirectories()
183 Files.createDirectories(dirPath); in test_createDirectories()
184 assertTrue(Files.isDirectory(dirPath)); in test_createDirectories()
187 Files.createDirectories(dirPath); in test_createDirectories()
200 Path dirPath = filesSetup.getPathInTestDir("dir1/dir2/dir3"); in test_createDirectories$Path$Attr() local
203 assertFalse(Files.exists(dirPath)); in test_createDirectories$Path$Attr()
204 Files.createDirectories(dirPath, attr); in test_createDirectories$Path$Attr()
205 assertEquals(attr.value(), Files.getAttribute(dirPath, attr.name())); in test_createDirectories$Path$Attr()
210 Files.createDirectories(dirPath, attr); in test_createDirectories$Path$Attr()
[all …]
DDefaultFileSystemProviderTest.java551 Path dirPath = filesSetup.getPathInTestDir("dir"); in test_delete() local
552 Files.createDirectory(dirPath); in test_delete()
553 provider.delete(dirPath); in test_delete()
554 assertFalse(Files.exists(dirPath)); in test_delete()
558 Files.createDirectory(dirPath); in test_delete()
561 provider.delete(dirPath); in test_delete()
584 Path dirPath = filesSetup.getPathInTestDir("dir"); in test_deleteIfExist() local
585 Files.createDirectory(dirPath); in test_deleteIfExist()
586 assertTrue(Files.deleteIfExists(dirPath)); in test_deleteIfExist()
587 assertFalse(Files.exists(dirPath)); in test_deleteIfExist()
[all …]
DDefaultFileSystemProvider2Test.java165 Path dirPath = filesSetup.getPathInTestDir("dir1"); in test_move_directory() local
169 Files.createDirectory(dirPath); in test_move_directory()
173 provider.move(dirPath, dirPath2); in test_move_directory()
184 assertFalse(Files.exists(dirPath)); in test_move_directory()
191 Path dirPath = filesSetup.getPathInTestDir("dir1"); in test_move_directory_DirectoryNotEmptyException() local
193 Files.createDirectory(dirPath); in test_move_directory_DirectoryNotEmptyException()
195 Files.createFile(Paths.get(dirPath.toString(), DATA_FILE)); in test_move_directory_DirectoryNotEmptyException()
198 Files.copy(dirPath, dirPath4, REPLACE_EXISTING); in test_move_directory_DirectoryNotEmptyException()
DFiles2Test.java304 Path dirPath = filesSetup.getPathInTestDir(dirName); in test_isDirectory() local
307 assertTrue(Files.isDirectory(dirPath)); in test_isDirectory()
325 Path dirPath = filesSetup.getPathInTestDir("dir"); in test_isRegularFile() local
326 Files.createDirectory(dirPath); in test_isRegularFile()
327 assertFalse(Files.isRegularFile(dirPath)); in test_isRegularFile()