File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/test/java/gov/loc/repository/bagit/creator Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1818import gov .loc .repository .bagit .domain .Manifest ;
1919import gov .loc .repository .bagit .domain .Version ;
2020import gov .loc .repository .bagit .hash .StandardSupportedAlgorithms ;
21+ import gov .loc .repository .bagit .util .PathUtils ;
2122
2223public class BagCreatorTest extends TempFolderTest {
2324
@@ -100,7 +101,8 @@ private TestStructure createTestStructure() throws IOException{
100101 TestUtils .makeFilesHiddenOnWindows (folder );
101102
102103 Assertions .assertTrue (Files .isHidden (hiddenFile ));
103- Assertions .assertTrue (Files .isHidden (hiddenDirectory ));
104+ //because the Files.isHidden() always returns false for windows if it is a directory
105+ Assertions .assertTrue (PathUtils .isHidden (hiddenDirectory ));
104106
105107 Path hiddenFile2 = hiddenDirectory .resolve (".hiddenFile2.txt" );
106108 Files .createFile (hiddenFile2 );
You can’t perform that action at this time.
0 commit comments