If you do os.listdir(SPREADSHEETS_DIR)
, you get the contents of that directory directly. But these have to be interpreted relative to this path.
Try
ffg = os.path.join(SPREADSHEETS_DIR, fff)
ffg # to look at
os.path.isfile(ffg)
and you'll find out that it works.
(Note that I follow you in the process of using very bad variable names...)