Enlightenment CVS committal
Author : chaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src/plugins
Modified Files:
filesystem.c
Log Message:
* Hookup menu item to show/hide hidden files (hi onefang!)
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/plugins/filesystem.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -3 -r1.79 -r1.80
--- filesystem.c 28 Aug 2006 10:47:12 -0000 1.79
+++ filesystem.c 2 Oct 2006 07:36:36 -0000 1.80
@@ -714,9 +714,12 @@
char posix_name[1024];
char *md5;
int filetype = -1;
+ int showhidden;
evfs_file_uri_path *dir_path;
entropy_file_listener *listener;
+ showhidden = entropy_config_misc_is_set("general.hiddenbackup");
+
if ((!strcmp (request->file->uri_base, URI_POSIX)) && !request->drill_down
&& !request->file->parent) {
printf ("Listing standard posix directory...\n");
@@ -755,7 +758,7 @@
dir = opendir (dire);
while ((de = readdir (dir))) {
if (strcmp (de->d_name, ".") && strcmp (de->d_name, "..")
- && (!NO_HIDDEN || de->d_name[0] != '.')) {
+ && (de->d_name[0] != '.') || showhidden) {
snprintf (full_name, 1024, "%s/%s", dire, de->d_name);
stat (full_name, &st);
if (S_ISDIR (st.st_mode)) {
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs