I want to select a file by numbers at left side of listing but I can't go more than this:
import os
path="/root/Desktop"
dirList=os.listdir(path)
for fname in dirList:
print fname
selected = raw_input("Select a file above: ")
What should I do?
Example:
http://img502.imageshack.us/img502/4407/listingy.png
Thank you in advance..