Post Reply 
is there any way to get list of files in application?
02-26-2024, 01:26 PM
Post: #2
RE: is there any way to get list of files in application?
(02-26-2024 01:20 PM)dmh Wrote:  I have a Python program where I want the user to be able to pick a file from the Python application files but I can't see any way of getting the list of files either natively on the Prime or via Python.

Am I missing something or is this currently not possible?

I can open files that I've added to Python without a problem but I want a list of them so I can display and let the user choose one (no os.listdir() etc).

Try this:
Code:
from hpprime import eval as ppleval
files = ppleval('AFiles')

The list with file names will be stored in the variable "files".
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: is there any way to get list of files in application? - komame - 02-26-2024 01:26 PM



User(s) browsing this thread: 1 Guest(s)