UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    duplicate media files

    Scheduled Pinned Locked Moved Solved Support
    3 Posts 2 Posters 21 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Online
      gandalf
      last edited by gandalf

      I'm using my sd card for backups of my home folder (e.g when reinstalling or other debugging). Unfortunately both the gallery and music players pick up the duplicate files (images, movies, music). Is it possible to tell them to not pickup certain folders or ignore duplicate files?

      Thanks in advance πŸ‘‹

      edit: FP4 24.04-1.2

      arubislanderA 1 Reply Last reply Reply Quote 0
      • arubislanderA Online
        arubislander @gandalf
        last edited by

        @gandalf Yes there is. In the terminal, navigate to the folder you no longer want the files indexed and execute the following command:

        touch .nomedia
        

        This also works on desktop linux.

        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
        Happily running Ubuntu Touch
        JingPad (24.04-1.x daily)
        OnePlus Nord N10 5G (24.04-2.x daily)
        PinePhone OG (20.04)
        Meizu Pro 5 (16.04 DEV)

        G 1 Reply Last reply Reply Quote 0
        • G Online
          gandalf @arubislander
          last edited by gandalf

          @arubislander said:

          @gandalf Yes there is. In the terminal, navigate to the folder you no longer want the files indexed and execute the following command:

          touch .nomedia
          

          This also works on desktop linux.

          Thanks, that worked (mostly). I had to delete the data and cache for both the music player and gallery plus do a reboot. They haven't picked up the files again.

          1 Reply Last reply Reply Quote 0
          • G gandalf has marked this topic as solved

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better πŸ’—

          Register Login
          • First post
            Last post