Menu

Files that begin with underscore are hidden

Help
Michael
2011-05-04
2013-04-29
  • Michael

    Michael - 2011-05-04

    I have a bunch of files in my root folder that begin with an underscore, and I can't see any of them, even if i select show hidden files.

     
  • Dan Herman

    Dan Herman - 2012-02-01

    Not a great solution, but I got around this by commenting out the line of code that prevents these files from showing in the list.

    Its in line #35 of the ecoder/code/base/functions.php file.  Basically I did this:

    // file ##     
        if ( is_file ( $path ) && is_readable ( $path ) && $scan_dirs == 0 ) {    
            if ( $content != $hidden_stuff ) {  
                if ( !in_array ( $content, $ignore_files ) ) { // skip ignored files
                   // if ( preg_match ( $ignore_regex, $content ) == 0 ) {               
                        $content_chunks = explode( ".", $content );
                        $ext = $content_chunks;           
                        if ( in_array( $ext, $allow_extensions ) ) { // only include files with desired extensions
                            $path_array = explode ( "/", $path ); // break into array ##
                            $tree = end ( $path_array ); // save file ##
                            $path_array_ext = explode ( ".", end ( $path_array ) ); // get extension ##
                            $tree = end ( $path_array_ext );     
                            $tree = substr ( sprintf ( '%o', fileperms( $path ) ), -4 ); // get permissions ##
                            $tree = filemtime ( $path ); // get file date ##               
                            $tree = ecoder_filesize ( filesize ( $path ) ); // get filesize in byte ##
                        }               
                   // }
                }
            }
        }

    See the comments for "if ( preg_match ( $ignore_regex, $content ) == 0 ) {     " and also the corresponding end bracket on line #47.

    works for me at least.

     
  • Wim Tibackx

    Wim Tibackx - 2012-02-02

    The new version doesn't have this problem anymore.

     

Log in to post a comment.