/*
 * Directory Entry Filler Implementation Class of JSFSFillDir for JSyndicateFS
 */
package JSyndicateFS;

import JSyndicateFSJNI.struct.JSFSFillDir;
import JSyndicateFSJNI.struct.JSFSStat;
import java.util.ArrayList;

/**
 *
 * @author iychoi
 */
public class DirFillerImpl extends JSFSFillDir {
    
    private ArrayList<String> entries = new ArrayList<String>();
    
    DirFillerImpl() {
        
    }
            
    @Override
    public void fill(String name, JSFSStat stbuf, long off) {
        entries.add(name);
    }

    public String[] getEntryNames() {
        String[] arr = new String[this.entries.size()];
        arr = entries.toArray(arr);
        return arr;
    }
}

@@ -293,24 +293,89 @@
 lDir %7B%0A    %0A
+    private static final String%5B%5D SKIP_FILES = %7B%22.%22, %22..%22%7D;%0A    %0A
     private 
@@ -428,24 +428,29 @@
 ng%3E();%0A    %0A
+    %0A
     DirFille
@@ -559,24 +559,226 @@
 long off) %7B%0A
+        boolean skip = false;%0A        for(String skip_file : SKIP_FILES) %7B%0A            if(name.equals(skip_file)) %7B%0A                skip = true;%0A            %7D%0A        %7D%0A        %0A        if(!skip) %7B%0A    
         entr
@@ -792,16 +792,26 @@
 (name);%0A
+        %7D%0A
     %7D%0A%0A 

Remove . and .. dirs from list result