jdk/test/java/nio/file/Files/PassThroughFileSystem.java
changeset 17696 23a863fbb6c3
parent 9050 26c2c1de1631
equal deleted inserted replaced
17695:032254f2467b 17696:23a863fbb6c3
     1 /*
     1 /*
     2  * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   302 
   302 
   303         @Override
   303         @Override
   304         public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter)
   304         public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter)
   305             throws IOException
   305             throws IOException
   306         {
   306         {
   307             return wrap(Files.newDirectoryStream(dir, filter));
   307             return wrap(Files.newDirectoryStream(unwrap(dir), filter));
   308         }
   308         }
   309 
   309 
   310         @Override
   310         @Override
   311         public void createDirectory(Path dir, FileAttribute<?>... attrs)
   311         public void createDirectory(Path dir, FileAttribute<?>... attrs)
   312             throws IOException
   312             throws IOException