mirror of
https://github.com/corda/corda.git
synced 2025-01-04 20:24:17 +00:00
repatch windows file delete
This commit is contained in:
parent
1f8f0b2194
commit
9928597543
@ -389,7 +389,7 @@ Java_java_io_File_delete(JNIEnv* e, jclass, jstring path)
|
||||
int r;
|
||||
if (chars) {
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
if (GetFileAttributes(chars) == FILE_ATTRIBUTE_DIRECTORY) {
|
||||
if (GetFileAttributes(chars) & FILE_ATTRIBUTE_DIRECTORY) {
|
||||
r = !RemoveDirectory(chars);
|
||||
} else {
|
||||
r = REMOVE(chars);
|
||||
|
Loading…
Reference in New Issue
Block a user