NextCloud snap doesn't work with external HDD

Snap version: 2.60.4+23.10.1
Operating system and version: Ubuntu 23.10

The issue I am facing:

Steps to replicate it:

  1. Install & Setup NextCloud with snap.
  2. Follow this tutorial
  3. Enter your servers URL in a web browser, and get the error message “Your data directory is invalid. Ensure there is a file called “.ocdata” in the root of the data directory.”

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

'datadirectory' => '/media/creeper39x/TB-Drive/nextcloud/data',

Please help, I have the permissions correct, yet whenever I move the directory it doesn’t work.