steam-deck-utilities icon indicating copy to clipboard operation
steam-deck-utilities copied to clipboard

External drives with spaces in the name are incorrectly parsed

Open CryoByte33 opened this issue 2 years ago • 2 comments

The game data functions fail when operating on a drive with a space in the mount path

CryoByte33 avatar Feb 23 '23 06:02 CryoByte33

I just did a once-over of the code and I'm not sure where the issue would be. Asking the user to re-confirm.

CryoByte33 avatar Feb 23 '23 09:02 CryoByte33

This is definitely an issue on further review. It's also an issue for drives with quotes in the name, which I didn't even realize was valid.

INFO	2023/02/23 14:25:05 Library location selected as right: /run/media/deck/Zack's Drive
INFO	2023/02/23 14:25:05 Library contains: 38410
INFO	2023/02/23 14:25:05 Library contains: 292030
INFO	2023/02/23 14:25:05 Library contains: 335300
INFO	2023/02/23 14:25:05 Library contains: 374320
INFO	2023/02/23 14:25:05 Library contains: 413150
INFO	2023/02/23 14:25:08 Sync data confirmed
INFO	2023/02/23 14:25:08 Moving 38410 right...
ERROR	2023/02/23 14:25:08 handler_game_data.go:288: symlink ../drive_c /run/media/deck/Zack's Drive/cryoutilities_steam_data/compatdata/38410/pfx/dosdevices/c:: invalid argument
ERROR	2023/02/23 14:25:08 ui_util.go:21: symlink ../drive_c /run/media/deck/Zack's Drive/cryoutilities_steam_data/compatdata/38410/pfx/dosdevices/c:: invalid argument

CryoByte33 avatar Feb 23 '23 19:02 CryoByte33