Skip to content

Commit 13b0e9a

Browse files
committed
Fixes fabio for files with prefix
1 parent 47486a3 commit 13b0e9a

File tree

1 file changed

+3
-2
lines changed
  • savu/data/data_structures/data_types

1 file changed

+3
-2
lines changed

savu/data/data_structures/data_types/fabIO.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ def __get_file_name(self, folder, prefix):
6969
# files = os.listdir(folder)
7070
fullpath = str.strip(folder)
7171
if prefix is not None:
72-
fullpath = os.path.join(folder, prefix)
73-
fullpath += "/*"
72+
fullpath = os.path.join(folder, prefix + '*')
73+
else:
74+
fullpath += "/*"
7475
files = glob.glob(fullpath)
7576
self.nFrames = len(files)
7677

0 commit comments

Comments
 (0)