If you want to print the contents of a folder (directory) either to a file or to your printer, then there is a quick way to do it using Chrome or the Firefox web browser.
Surely the following way will look simpler than you imagine. Open it Google Chrome or Firefox and type the path of the folder you are interested in, in line addresses and press the ENTER key.
The browser will immediately show you the contents of the folder, sorted by name, with the subfolders at the top. You can sort the contents as you like, size, or modification date base. Just click the column header to sort by this column.
You will notice some differences in the print preview of the two browsers. Chrome, on the other hand, does not reproduce them icons that accompany every file type and directory, while Firefox has no problem with it.
Especially for Firefox, you can apply your own style to the content page of your directory, such as changing the font, or removing the files / folders icons or changing the spaces between columns,
Ενώ είστε στον Firefox ανοίξτε τον "Style Editor" από τα "Εργαλεία Προγραμματιστή". Αν δεν ξέρετε πως, απλά πατήστε ταυτόχρονα τα πλήκτρα Shift + F7 (Εναλλακτικά, κάντε κλικ στο πλήκτρο F12 (ή Ctrl + Shift + i) και μετά κάντε κλικ στο "Style Editor").
You will see the style of displaying the contents of the directory. You can hurt it as much as you like. Once you close Firefox, things get back to their original state and you do not have to worry about ruining something. For example, if you do not want the icons next to the file name to appear, type the following at the beginning of the style editor:
.dir :: after {content: "/"} img {display: none}
Tip: In Internet Explorer and Microsoft Edge, when you type a directory path into the taskbar, the browser will display the contents of the directory like Explorer, instead of just listing filenames and subdirectories.