Recursive slideshow does now follow symlinks
This commit is contained in:
@@ -46,7 +46,7 @@ class Slideshow:
|
|||||||
|
|
||||||
if self.recursive:
|
if self.recursive:
|
||||||
# Recursively walk all entries in the directory
|
# Recursively walk all entries in the directory
|
||||||
for root, dirnames, filenames in os.walk(self.directory):
|
for root, dirnames, filenames in os.walk(self.directory, followlinks=True):
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
filelist.append(os.path.join(root, filename))
|
filelist.append(os.path.join(root, filename))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user