title: KivyMD with plyer Filechooser - How to get the path of a directory?
body: <p>In <code>KivyMD</code> I use often the <code>plyer Filechooser</code> that looks to me really good for getting the path of a file, for a desktop application.</p>
  <p><strong>PROBLEM</strong>: <strong>I cannot find a way to get the path of a directory</strong>, I can get at the moment only the path of a file. Can you help me to get the path of a directory/folder?</p>
  <p>Here my code:</p>
  <pre><code>from plyer import filechooser
  from kivymd.app import MDApp
  from kivy.lang import Builder
  from plyer import filechooser
  
  
  
  KV = &quot;&quot;&quot;     
  
  BoxLayout:
      id: box
      orientation: &quot;vertical&quot;                
      # size_hint: None, None
      # size: self.minimum_size 
      # pos_hint: {&quot;center_x&quot;: .5}  
      spacing: dp(10)
      padding: dp(30)
  
  
      MDRoundFlatButton:
          id: openPathID
          text: &quot;Get url&quot;       
          pos_hint: {'center_x': .5}       
          on_release: app.file_manager_open()
          
      MDLabel:
          id: my_custom_label
          text: &quot;URL&quot;
          halign: 'center'      
  
  
  &quot;&quot;&quot;
  
  class DemoApp(MDApp):
      def build(self):
          return Builder.load_string(KV)
  
      def file_manager_open(self):
          raw_path = filechooser.open_file(title=&quot;Carica il file tempi in formato .xlsx&quot;,
                                                                    filters=[(&quot;Comma-separated Values&quot;, &quot;*.xlsx&quot;)])
          self.root.ids.my_custom_label.text = raw_path[0]
  
  DemoApp().run()
  </code></pre>
  <p>Thanks in advance</p>