<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.squi.fr/index.php?action=history&amp;feed=atom&amp;title=Python_%3A_os.walk%28%29</id>
	<title>Python : os.walk() - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.squi.fr/index.php?action=history&amp;feed=atom&amp;title=Python_%3A_os.walk%28%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.squi.fr/index.php?title=Python_:_os.walk()&amp;action=history"/>
	<updated>2026-04-28T12:14:55Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.squi.fr/index.php?title=Python_:_os.walk()&amp;diff=2238&amp;oldid=prev</id>
		<title>Justine le 22 juin 2022 à 12:06</title>
		<link rel="alternate" type="text/html" href="https://wiki.squi.fr/index.php?title=Python_:_os.walk()&amp;diff=2238&amp;oldid=prev"/>
		<updated>2022-06-22T12:06:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 22 juin 2022 à 12:06&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:prog]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:python]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=La fonction Os.walk()=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=La fonction Os.walk()=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Cette fonction sert à faire de la recherche récursive de fichiers. Elle dispose de plusieurs options, mais est assez simple à utiliser.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Cette fonction sert à faire de la recherche récursive de fichiers. Elle dispose de plusieurs options, mais est assez simple à utiliser.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Justine</name></author>
	</entry>
	<entry>
		<id>https://wiki.squi.fr/index.php?title=Python_:_os.walk()&amp;diff=1067&amp;oldid=prev</id>
		<title>Justine : Page créée avec « =La fonction Os.walk()= Cette fonction sert à faire de la recherche récursive de fichiers. Elle dispose de plusieurs options, mais est assez simple à utiliser.  Elle pa... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.squi.fr/index.php?title=Python_:_os.walk()&amp;diff=1067&amp;oldid=prev"/>
		<updated>2019-06-13T16:09:59Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « =La fonction Os.walk()= Cette fonction sert à faire de la recherche récursive de fichiers. Elle dispose de plusieurs options, mais est assez simple à utiliser.  Elle pa... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=La fonction Os.walk()=&lt;br /&gt;
Cette fonction sert à faire de la recherche récursive de fichiers. Elle dispose de plusieurs options, mais est assez simple à utiliser.&lt;br /&gt;
&lt;br /&gt;
Elle part d&amp;#039;une racine et peut descendre ou monter selon l&amp;#039;option fournie.&lt;br /&gt;
&lt;br /&gt;
Elle renvoie à chaque fois: &lt;br /&gt;
*root : le dossier de départ&lt;br /&gt;
*dir : les dossiers dans root&lt;br /&gt;
*file : les fichiers dans root&lt;br /&gt;
&lt;br /&gt;
Et ça pour chaque dossier qu&amp;#039;elle descend.&lt;br /&gt;
&lt;br /&gt;
==Trouver des fichier par extension==&lt;br /&gt;
&lt;br /&gt;
C&amp;#039;est assez puissant une fois allié à re : &lt;br /&gt;
&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; for root, dir, files in os.walk(&amp;quot;/&amp;quot;):&lt;br /&gt;
 ...     for file in files:&lt;br /&gt;
 ...             if re.search(r&amp;quot;.{1,15}\.txt&amp;quot;, str(file)):&lt;br /&gt;
 ...                     print(file)&lt;/div&gt;</summary>
		<author><name>Justine</name></author>
	</entry>
</feed>