• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing the home directory

I haven't tried yet because I don't want to mess with the files in my MSP home directory without being sure about this.
From the last time I changed it when I adjusted to the new relative paths I think I remember that MSP tries to move
every file to the new directory by itself regardless if they have been moved already.

Am I remembering this correct? And if so, could you please an option that I can move my files to the new directory manually
(much faster with NTFS under W10 done manually for instance) and MSP accepts the change without any file moves on its own?

(Reason, I want to move my MSP dir out of the Dropbox directory for another way to sync it with several devices)

Looking at the code, it looks like you can already do this with Windows 10. If all of the file paths in the database are already relative to the storage location (which they should be), then when you change the storage location, it basically has no impact on the relative paths stored in the database. This unfortunately not currently true for Android, where it will convert a relative path to an absolute path and leave the old file location in place if the file does not exist after changing the storage location. I'm going to change this for the next update.

Thanks for looking into it and good to know.

I want to change the storage location on my W10 desktop and my Surface Pro. So I'll go ahead with it. But good if you change it for the Android version, too.
What exactly is the condition that signals a relative path for MSP on Android?
I manage my files myself and plan to reorganise them in a way that I can just copy mobilesheets.db from a Win10 device to an Android device and vice versa.
Maybe I should wait until that mentioned next update.
first language: German
Acer A1-830, Android 4.4.2 - HP x2 210 G2 Detachable, Win 10 1803
www.moonlightcrisis.de - www.basdjo.de - www.frankenbaend.de

AFAIK, if the path is under the MSPro library directory it gets treated as relative.

I have a couple of Androids and all files are in /storage/XXXX/Android/data/com.zubersoft.mobilesheets/files/Partituren/ . The XXXX varies between devices but copying the database between devices works well. In the database all paths start with Partituren/.... .
Samsung Galaxy Note S4 (T830) 10.5", Android 9.0, AirTurn Duo & Digit.
Samsung Galaxy Note 2 (N8010) 10.1", Android 7.1.2 (LineageOS) (backup).
Samsung A3 (A320FL), Android 8.0 (emergency).
(02-08-2019, 06:17 PM)itsme Wrote: What exactly is the condition that signals a relative path for MSP on Android?
I manage my files myself and plan to reorganise them in a way that I can just copy mobilesheets.db from a Win10 device to an Android device and vice versa.

Well, that already works so far and I synchronize my Android devices and W10 with dropbox (but soon with resilio sync) with some small caveats. If you just copy your database (assuming it already has relative paths) then you should have no problem.

But changing the storage location on Android is problematic as Mike said.
OK, there it is. Like I recalled.

I wanted to change the storage location under W10 (PC) and now get the message:

MobileSheets is currently managing files in the storage location. All of these files must be moved to the new location, and the process may take awhile.

That's what I don't want. I have all the files in the new storage location already (quick copy with a hardlink) and don't want that MSP moves something itself. So I hesitate to press OK.

What will MSP do, if I press OK? I don't want it to unnecessarily move huge amounts of sheets, also because I have many sheets and also many small files I didn't include in the database. (And in case it starts moving files as I suspect, can you please include the option to do it manually).
Mike, did you read this?

Can you please tell me what your code does to my database and the files when I click OK (inspite of the database already having relative paths and the files are already copied to the destination directory)?
I thought I had submitted a response - I'm not sure what happened. Sorry about that. MobileSheets will iterate over all of the songs in your library and will try to move the files. If the file for a particular song doesn't exist, then nothing will happen. MobileSheets will not move files in your storage location that aren't tied to a song (it's not just a blind *.* copy). It doesn't make sense for MobileSheets not to try to copy every file to the new storage location because with the Windows 10 version, every song file has to be under the storage location in order for MobileSheets to have access to it. Files cannot reside in two unrelated directories. So as long as all of your song files have been moved to the new location, there is no harm in clicking OK and letting MobileSheets try to move the non-existent files.

Thanks, that helps.

So I better have to delete the files from the current storage location first (since I hardcopied them to then new one, so they're still existent at the old place). I just wanted to avoid file conflicts or even worse conversions in the database to wrong or absolute paths like it's currently in the Android version. Luckily I don't have to move the storage location there.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.