package com.ibm.crail;
import java.util.Iterator;
<BUG>public abstract class CrailDirectory implements CrailNode {
</BUG>
public abstract int files();
public abstract Iterator<String> listEntries() throws Exception;
<BUG>public abstract CrailDirectory syncDir() throws Exception;
public abstract void close() throws Exception;
public CrailMultiStream getMultiStream(int outstanding) throws Exception{
</BUG>
return new CrailMultiStream(this.getFileSystem(), listEntries(), outstanding);

package com.ibm.crail;
import java.util.Iterator;
public interface CrailDirectory extends CrailNode {
public abstract int files();
public abstract Iterator<String> listEntries() throws Exception;
default CrailMultiStream getMultiStream(int outstanding) throws Exception{
return new CrailMultiStream(this.getFileSystem(), listEntries(), outstanding);
