Create a file using the touch command in Mac or Unix-like OS
Create a file using the touch command in Mac or Unix-like OS Home / problem You are playing with something cool on your machine and all of the sudden you wish to create an empty file for testing purposes. For example, a classic case, a text file that will be manipulated by a program. SOLUTION […]
How to get File System’s separator using Python
How to get FileSystem’s separator using Python Home / problem You’re writing a program (e.g. AWS lambda) in Python that is using a file path and runs on various Operating Systems. For example, Windows OS uses a different separator in comparison with Mac OS. Operating System File Path example Windows C:DocumentsNewslettersSummer2018.pdf Mac OS /home/user/documents SOLUTION […]