handle error from non-empty folders in nativeshare