Spaces:
Runtime error
Runtime error
import os | |
def getEveryFramPath(directoryPath): | |
# Define the directory path | |
directory_path = directoryPath | |
# Get the list of all file paths | |
file_paths = [] | |
for root, directories, files in os.walk(directory_path): | |
for filename in files: | |
file_paths.append(os.path.join(root, filename)) | |
# Print the list of file paths | |
print(file_paths) | |
return file_paths |