Skip to content

fix: keep files whose names are only dots when unhiding - #522

Closed
ibrahim-iqbal wants to merge 1 commit into
FossifyOrg:mainfrom
ibrahim-iqbal:fix/517-unhide-dot-only-name
Closed

ibrahim-iqbal wants to merge 1 commit into
FossifyOrg:mainfrom
ibrahim-iqbal:fix/517-unhide-dot-only-name

Conversation

@ibrahim-iqbal

Copy link
Copy Markdown

Closes #517.

Unhiding a file named ... computed the new name .., which is the parent folder. The rename then failed and the file and its content were gone.

toggleItemVisibility now leaves the file alone when the unhidden name would be empty, . or .., the same way it already skips a name that is already visible. Other names, including ...., are unhidden as before.

Checked: :app:detekt and :app:compileFossDebugKotlin pass. I did not run it on a device.

Unhiding "..." produced the name "..", which names the parent folder, so the
rename failed and the file and its content were lost. Leave such names as they
are, the same way a name that is already visible is skipped.
@fossifybot

fossifybot Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Fossify accepts code contributions only for open issues labeled help wanted. This pull request does not meet that requirement or one of the documented exceptions, so it is being closed without review. Please read the contribution guidelines before starting work.

@fossifybot fossifybot Bot closed this Nov 3, 2026
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.

Unhiding a file named "..." deletes the file and its content

1 participant