From 7fdb267c9cebc2796f69e5afff3a242891c403ad Mon Sep 17 00:00:00 2001
From: Jennifer Hodgdon <yahgrp@poplarware.com>
Date: Fri, 13 Jun 2014 15:21:58 -0700
Subject: [PATCH] Issue #1914914 by purdy_nc, meba, chx, heyrocker: Add to docs
 of file_scan_directory to discuss excluding config

---
 core/includes/file.inc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/core/includes/file.inc b/core/includes/file.inc
index 18c28208f569..1028f5e9b6b7 100644
--- a/core/includes/file.inc
+++ b/core/includes/file.inc
@@ -1171,7 +1171,11 @@ function file_unmanaged_save_data($data, $destination = NULL, $replace = FILE_EX
  *
  * Directories and files beginning with a dot are excluded; this prevents
  * hidden files and directories (such as SVN working directories) from being
- * scanned.
+ * scanned. Use the umask option to skip configuration directories to
+ * eliminate the possibility of accidentally exposing configuration
+ * information. Also, you can use the base directory, recurse, and min_depth
+ * options to improve performance by limiting how much of the filesystem has
+ * to be traversed.
  *
  * @param $dir
  *   The base directory or URI to scan, without trailing slash.
-- 
GitLab