subnub/myDrive

[Bug] Windows FS_DIRECTORY path needs ending slashes

cjerrington opened this issue · 0 comments

I really liked this project and wanted to give it a try (wanted to make my own, but I'd contribute here first)! I followed the Guided Install from your website and it all went as it should. During the setup it asks for the File Storage directory so I put in D:\MyDriveStorage which is outside of the cloned repo and running application.

Upon creating a user and starting to upload files I noticed the files were being saved to D:\MyDriveStorage5e561239-0e6c-4879-8a11-528a1ff24e2b not D:\MyDriveStorage\5e561239-0e6c-4879-8a11-528a1ff24e2b.

I was able to update the paths in the MongoDB when I moved the files to the correct folder and updated the prod.env file paths to include the ending slash.

FS_DIRECTORY=D:\MyDriveStorage\
ROOT=D:\MyDriveStorage\

What would it take to add notes in the setup to include the ending slash or append this programatically when checking the path for FS_DIRECTORY and ROOT?

System Details

  • NodeJS: v12.8.0
  • npm: 6.14.4
  • Windows 10 Pro x64 (20H2)