Filename with 3 dots not hidden
- From: Adam Krolnik <adam.krolnik@xxxxxxxxxxxxxxx>
- To: emelfm2@xxxxxxxxxxxxx
- Date: Thu, 24 Jul 2008 16:07:03 -0500
Hello;
I came to find that a filename like "...afile" is not hidden when one
toggles the 'Display Hidden files' state.
I was trying to fix the code that hides the files, but my fix hides the
".." regardless of the
up directory hiding state. The code I rewrote was:
// 3 cases ".", "..", ".*"
// 1 "." is filtered out when dir read
// 2. ".."
if (name[0] == '.' && name[1] == '.' && name[2] == '\0')
//never show updir in root directory
#ifdef E2_VFSTMP
//FIXME show updir in root of archive etc v-dirs
#endif
return hide_updir || (view->dir[0] == G_DIR_SEPARATOR &&
view->dir[1] == '\0');
// 3. ".*" - The code used to associate "..file" with ".."
if (ITEM_ISHIDDEN (name) && !view->show_hidden)
return FALSE;
--
Soli Deo Gloria
Adam Krolnik
Director of Design Verification
VeriSilicon Inc.
Plano TX. 75074
Co-author "Assertion-Based Design", "Creating Assertion-Based IP"
- Follow-Ups:
- Re: Filename with 3 dots not hidden
- From: tpgww
- References:
- emelFM2 pre-release available
- From: tpgww
- Re: emelFM2 pre-release available
- From: Liviu Andronic
Other related posts:
- » Filename with 3 dots not hidden
- » Re: Filename with 3 dots not hidden
- Re: Filename with 3 dots not hidden
- From: tpgww
- emelFM2 pre-release available
- From: tpgww
- Re: emelFM2 pre-release available
- From: Liviu Andronic