Skip to content

Keep CSV logs in Documents/SecureDroneID when the directory exists - #8

Open
erkki wants to merge 1 commit into
Fahdonn:drip-hardeningfrom
bear-metal:fix/log-dir-exists
Open

Keep CSV logs in Documents/SecureDroneID when the directory exists#8
erkki wants to merge 1 commit into
Fahdonn:drip-hardeningfrom
bear-metal:fix/log-dir-exists

Conversation

@erkki

@erkki erkki commented Sep 1, 2026

Copy link
Copy Markdown

getLoggerFileDir treated a false return from File.mkdirs() as failure, but
mkdirs() also returns false when the directory already exists. Every run after the
first therefore logged to getExternalFilesDir(), which is not browsable by file
managers or adb on Android 11+. Fall back only when the directory neither was created
nor exists.

getLoggerFileDir treated a false return from File.mkdirs() as failure,
but mkdirs() also returns false when the directory already exists. Every
run after the first therefore logged to getExternalFilesDir(), which is
not browsable by file managers or adb on Android 11+. Fall back only
when the directory neither was created nor exists.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant