mirror of https://github.com/adamdruppe/arsd.git
directory thanks to BorisCarvajal in issue #233 comment
This commit is contained in:
parent
1a95ea7202
commit
7b5e7eb2c4
|
@ -129,6 +129,8 @@ bool processTar(
|
||||||
*header = *(cast(TarFileHeader*) dataBuffer.ptr);
|
*header = *(cast(TarFileHeader*) dataBuffer.ptr);
|
||||||
auto s = header.size();
|
auto s = header.size();
|
||||||
*bytesRemainingOnCurrentFile = s;
|
*bytesRemainingOnCurrentFile = s;
|
||||||
|
if(header.type() == TarFileType.directory)
|
||||||
|
handleData(header, true, false, null);
|
||||||
if(s == 0 && header.type == TarFileType.normal)
|
if(s == 0 && header.type == TarFileType.normal)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
5
jni.d
5
jni.d
|
@ -1812,6 +1812,11 @@ string javaObjectToString(IJavaObject i) {
|
||||||
return "FIXME";
|
return "FIXME";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
T as(T, R)(R obj) {
|
||||||
|
// FIXME: this will have to do downcasts to interfaces
|
||||||
|
return T.init;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static T fromExistingJavaObject(T)(jobject o) if(is(T : IJavaObject) && !is(T == interface)) {
|
static T fromExistingJavaObject(T)(jobject o) if(is(T : IJavaObject) && !is(T == interface)) {
|
||||||
import core.memory;
|
import core.memory;
|
||||||
|
|
Loading…
Reference in New Issue