Change the location of Spotify’s local storage in Windows

One of the most frustrating aspects of having a
small SSD dedicated to your Windows operating system is the fact that some
software installers just don’t give you the option to install outside of installation
the primary drive.

There are even some applications that allow this
u to save your installation data on a secondary drive, but still place it
temporary or cache files on the primary drive. For anyone interested in keeping
their primary drive is nice and tidy, this can be a big deal.

Spotify is one of many Windows
applications that will eventually take up a whole lot of space. This one
is due to the way Spotify caches your data locally so you are not
constantly re-streaming music from their servers. It serves as a way to
Spotify to save bandwidth and instantly deliver your music without the need for it
buffer.

However, this has a price for those of us
trying to save precious disk space. Not everyone can afford to have several
gigabytes of local Spotify data on their primary drive, and the good news is:
that there is a way around it. Let’s talk about how to move Spotify’s locally
cache data to a new location in Windows.

How to change the location of
Spotify data in Windows

To perform this task, we are going to use
something called a symbolic link or directory node. A directory node
effectively creates a mirror of your data on one file path, but in fact saves
the data in another.

The first thing we need to do is:
to find exactly where our Spotify’s data folder actually is. To do this, press
the Windows + R keys to a
Run prompt. Type here “%localappdata
and press Enter

This should open a Windows Explorer window
of the AppDataLocal folder inside
your Windows user profile location. In this list of files, find the Spotify folder and open it.

The Facts
folder inside is what contains all your cached music data. you may want
right click on it and select Properties
to see how big this folder is. Is it so big you want to take it off?
your current drive and on another? Excellent! That’s what we’re going to do next.

The first step is to make sure Spotify is not currently running on your computer. After you’re sure it’s closed, you’ll want the Facts folder and press the Ctrl + C keys to copy it.

Then open a second Windows Explorer window from the location where you want to move your Spotify data. At that location, press Ctrl + V to paste the folder.

Above you can see that I have a new . have made
location to store my data D:craigSpotify
the pasted Facts folder contains here
the contents of that same folder in C:UserscraigAppDataLocalSpotify

Then make sure the two folders:
identical. Look in both to see that you have all . have completely copied
files correctly. Once completed, go back to the original Spotify folder location (in our first Windows Explorer window at AppDataLocal), select the Facts folder we just copied, and
Press on the remove key to delete it.

Next we’re going to create a map
crossing so that your new Facts
map points to where the old one once was. To do this, press the Windows + R keys to the . to bring it up again
Run prompt. Type in “cmd”, but be
be sure to press Ctrl + Shift + Enter
(instead of just) Enter)—this is running
the prompt as administrator.

This is where we start making our
directory node. You want to type the following command: mklink /j
Where is the way to
the original folder (which we’ll recreate) and is the path to the new folder (which we pasted).

In my example above, I would run this command: mklink /j
C:UserscraigAppDataLocalSpotify D:craigSpotify

It is important to embed the folder paths in
quotes if they contain a space.

You will see a success message after the
directory junction has been created. You should also see that the Facts map now reappears with our
original location, this time with the little “shortcut” icon at the bottom left
corner.

That is it! Now, if you play music in
Spotify, it will still cache that data in the original folder on your link
Place. However, the folder node will automatically move it to the new one
location and “mirror” it to its original location.

For those of you who use Spotify on a daily basis
base, years of regular use can swell this folder to a massive size.
With this simple directory junction trick you can store all that data in
any folder on any drive.

Best of all, the same procedure can be useful in many other useful scenarios – see how we use a symbolic link to sync folders with Dropbox and OneDrive



Post views:
20

Leave a Reply

Your email address will not be published.