Posts

Showing posts from March 21, 2019

Hôtel de Ville (Parigi)

Image
Hôtel de Ville Facciata Localizzazione Stato   Francia Località Parigi Indirizzo 5 Rue de Lobau, 75004 Parigi, Francia Coordinate 48°51′23″N 2°21′08″E  /  48.856389°N 2.352222°E 48.856389; 2.352222 Coordinate: 48°51′23″N 2°21′08″E  /  48.856389°N 2.352222°E 48.856389; 2.352222 Informazioni generali Condizioni In uso Costruzione 1357 1533 1874-1882 Inaugurazione 1678 Stile neorinascimentale Uso palazzo comunale Realizzazione Architetto Domenico da Cortona (Edificio originale), Théodore Ballu, Édouard Deperthes Modifica dati su Wikidata  · Manuale L' Hôtel de Ville de Paris (in italiano: Palazzo di città di Parigi o Municipio di Parigi ) è il municipio di Parigi cittadino; si trova nel IV arrondissement, vicino alla Senna. È classificato come Monumento storico di Francia. Il consiglio municipale di Parigi risale al 1246, istituito da Luigi IX. Poiché era presieduta dalla corporazione dei mercanti d'acqua, i

Finding the latest file in a folder

Image
3 1 $begingroup$ I'm a bit new to Python and sort of learning on my own. I wrote a small function to help me find the latest file in a directory. Taking a step back, it reads a bit janky and I was curious what steps or what resources I could look into to help me make this more friendly. Should I be returning False ? Or 0 ? Inside my example/files directory are 3 files which were, for this example, created on the dates specified in the file name: example/files/randomtext011.201602012.txt example/files/randomtext011.201602011.txt example/files/randomtext011.201602013.txt import os.path import glob import datetime dir = 'example/files' file_pattern = 'randomtext011.*.txt' def get_latest_file(file_pattern,path=None): if path is None: list_of_files = glob.gl