protected void walk(String path, CButton buttonsList)
  {
    File rootFolder = new File(path);
    File[] list = rootFolder.listFiles();

    if (list == null)
      return;

    String fileSeparator = "\\";
    if (System.getProperty("os.name").equals("Linux"))
      fileSeparator = "/";
    for (File f : list)
    {
      final String fileToString = f.getAbsoluteFile().toString();
      String file = getCleanName(fileToString, fileSeparator);

      if (f.isDirectory())
        if (buttonsList == null)
        {
          final CButton cButton = new CButton(file);
          walk(f.getAbsolutePath(), cButton);
          if (cButton.getMedias().size() > 0)
          {
            setButtons.add(cButton);
            cButton.downloadIcon();
          }
        }
        else
          walk(f.getAbsolutePath(), buttonsList);
      else if ((file = isVideo(fileToString, file, Utils.EXTENSIONS)) != null)
        if (!Prefs.getInstance().getPrefs().getBoolean(getStringHashcode(fileToString), false))
        {
          if (buttonsList == null)
          {
            final CButton cButton = new CButton(file);
            cButton.addMedia(file.trim(), fileToString);
            cButton.downloadIcon();
            setButtons.add(cButton);
          }
          else
            buttonsList.addMedia(file.trim(), fileToString);

          Prefs.getInstance().getPrefs().putBoolean(getStringHashcode(fileToString), true);
        }
    }
  }