How to find files and skip directories in os.listdir
I use os.listdir and it works fine, but I get sub-directories in the list also, which is not what I want: I need only files.
I use os.listdir and it works fine, but I get sub-directories in the list also, which is not what I want: I need only files.
..and what are the consequences of the different methods?
(I’m on Arch Linux, using i3 as my wm and xterm as my terminal emulator, though I don’t know if any of that is relevant.)
I’d love to know how to get back into wp-admin and get my site back online.