Browse code

name refactor to indicate _fswalk_follow_symlinks is an internal helper function

git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/branches/amax-follow-symlinks@435 830e0280-6d2a-0410-9c65-932aecc39d9d

Aaron Maxwell authored on 2010/07/26 12:41:22
Showing 1 changed files
... ...
@@ -36,7 +36,7 @@ def check_args_type(args, type, verbose_type):
36 36
 		if S3Uri(arg).type != type:
37 37
 			raise ParameterError("Expecting %s instead of '%s'" % (verbose_type, arg))
38 38
 
39
-def fswalk_follow_symlinks(path):
39
+def _fswalk_follow_symlinks(path):
40 40
         '''
41 41
         Walk filesystem, following symbolic links (but without recursion), on python2.4 and later
42 42
 
... ...
@@ -68,7 +68,7 @@ def fswalk(path, follow_symlinks):
68 68
         follow_symlinks (bool) indicates whether to descend into symbolically linked directories
69 69
         '''
70 70
         if follow_symlinks:
71
-                return fswalk_follow_symlinks(path)
71
+                return _fswalk_follow_symlinks(path)
72 72
         return os.walk(path)
73 73
 
74 74
 def cmd_du(args):