Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file for file names that include non-native path separators #250

Open
games647 opened this issue Aug 7, 2023 · 2 comments
Open
Labels
bug Something isn't working

Comments

@games647
Copy link

games647 commented Aug 7, 2023

Ludusavi version

Other

Operating system

Linux

Installation method

Standalone

Description

I found one game that uses windows path separators in Linux (here: Linux native game). This seems to be very rare and only occurred for one specific feature within that game. However, I found out that ludusavi fails to find the files for backup although it discovers them on scanning. According to the UI, the \ gets translated to a platform native path.

image

Version: 03f0006 (Unreleased after: v0.20.0)

Logs

ERROR [ludusavi::path] [SpeedRunners] try 0, unable to copy: /home/HIDDEN/.local/share/SpeedRunners/CEngineStorage/AllPlayers/Ghost/Replay/1_SS Royale.spg -> ./drive-0/home/HIDDEN/.local/share/SpeedRunners/CEngineStorage/AllPlayers/Ghost/Replay/1_SS Royale.spg | No such file or directory (os error 2)
ERROR [ludusavi::path] [SpeedRunners] try 0, unable to copy: /home/HIDDEN/.local/share/SpeedRunners/CEngineStorage/AllPlayers/Ghost/Replay/9_Zoo.spg -> ./drive-0/home/HIDDEN/.local/share/SpeedRunners/CEngineStorage/AllPlayers/Ghost/Replay/9_Zoo.spg | No such file or directory (os error 2)
@games647 games647 added the bug Something isn't working label Aug 7, 2023
@mtkennerly
Copy link
Owner

Yeah, this is a limitation with the current design. This should definitely be addressed, although it will be a bit delicate since this affects several interfaces.

For now, I've updated master with a workaround to simply ignore those paths. Would you mind giving it a try?

@games647
Copy link
Author

games647 commented Aug 8, 2023

Yes, the files are now ignored without any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants