package com.florianf.gwtcordova.client.plugin.file;

import com.florianf.gwtcordova.client.elemental.Function;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Entry")
public interface FileEntry {

    @JsProperty
    boolean isFile();

    @JsProperty
    boolean isDirectory();

    @JsProperty(name = "name")
    String getName();

    @JsProperty(name = "fullPath")
    String getFullPath();

    @JsProperty(name = "filesystem")
    FileSystem getFileSystem();

    String toURL();

    void createWriter(Function<Void, FileWriter> success, Function<Void, FileError> error);

    void file(Function<Void, File> success, Function<Void, FileError> error);
}

@@ -331,32 +331,49 @@
 %0A    @JsProperty
+(name = %22isFile%22)
 %0A    boolean isF
@@ -395,16 +395,38 @@
 Property
+(name = %22isDirectory%22)
 %0A    boo

fix file