Print-Filenames
Sat 17 May 2025
title: "Print Filenames" author: "Rj" date: 2019-04-21 description: "-" type: technical_note draft: false
from os import walk
from os import listdir
from os.path import isfile, join
path = '/tmp'
onlyfiles = [f for f in listdir(path) if isfile(join(path, f))]
onlyfiles
['.BBE72B41371180178E084EEAF106AED4F350939DB95D3516864A1CC62E7AE82F']
for fle in onlyfiles:
print(fle)
.BBE72B41371180178E084EEAF106AED4F350939DB95D3516864A1CC62E7AE82F
Score: 5
Category: textprocessing