English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 15 March 2015, 20:45   #1
TenLeftFingers
Registered User
 
TenLeftFingers's Avatar
 
Join Date: Sep 2013
Location: Ireland
Posts: 800
fs-uae won't scan folder

Scan error
could not find case for path /home/tenleftfingers/Copy/RetroComputing/a1200

That's the error I get when I click the scan button. But I added the path using the UI and it's correct.

Copy (a Dropbox like application) is still syncing to the folder.

I'm using the stable repo: ppa:fengestad/stable

Any ideas?

Last edited by TenLeftFingers; 15 March 2015 at 21:15.
TenLeftFingers is offline  
Old 19 March 2015, 22:20   #2
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
There could be more information in fs-uae-launcher.log.txt. Please reproduce the issue, quit FS-UAE Launcher, and either post fs-uae-launcher.log.txt here or send to frode@fs-uae.net.
FrodeSolheim is offline  
Old 20 March 2015, 17:50   #3
TenLeftFingers
Registered User
 
TenLeftFingers's Avatar
 
Join Date: Sep 2013
Location: Ireland
Posts: 800
I can't reproduce this since the last reboot. Feel free to delete/close. Thanks again for your response.
TenLeftFingers is offline  
Old 02 July 2015, 21:33   #4
TenLeftFingers
Registered User
 
TenLeftFingers's Avatar
 
Join Date: Sep 2013
Location: Ireland
Posts: 800
It's back v2.4.3. Logs attached
Attached Files
File Type: txt fs-uae-launcher.log.txt (18.6 KB, 147 views)
TenLeftFingers is offline  
Old 30 July 2015, 14:20   #5
TenLeftFingers
Registered User
 
TenLeftFingers's Avatar
 
Join Date: Sep 2013
Location: Ireland
Posts: 800
Bump
Click image for larger version

Name:	fsuae-scan-issue.png
Views:	269
Size:	142.4 KB
ID:	44901
TenLeftFingers is offline  
Old 31 July 2015, 00:37   #6
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
Do you have the same file/directory names with different upper/lower case in one directory? If so, this could be the problem.
For example:
Code:
/tmp/test/
    └── Copy
        └── RetroComputing
            ├── A1200
            └── a1200
                └── Floppies
get_real_case() in Paths.py fails to scan /tmp/test/Copy/RetroComputing/A1200/floppies.

Last edited by jbl007; 31 July 2015 at 09:46. Reason: removed user name
jbl007 is offline  
Old 31 July 2015, 01:11   #7
TenLeftFingers
Registered User
 
TenLeftFingers's Avatar
 
Join Date: Sep 2013
Location: Ireland
Posts: 800
I think you've found the issue jbl007, because there is both a Copy and copy directory next to each other. I'll try and safely move one of them and try fs-uae again.

I'll come back with the result.

Edit: Thank you jbl007! That solved my problem. Could I ask you to remove the username (the parent directory to Copy) in the diagram you posted above?

Frode, this can affect any user of a linux system.

Last edited by TenLeftFingers; 31 July 2015 at 01:18.
TenLeftFingers is offline  
Old 31 July 2015, 09:50   #8
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
Quote:
Originally Posted by TenLeftFingers View Post
Could I ask you to remove the username (the parent directory to Copy) in the diagram you posted above?
No problem. Keep in mind, it's also in the log file, you attached.

Quote:
Frode, this can affect any user of a linux system.
if linux: return path. Could it be that simple to fix it?
jbl007 is offline  
Old 31 July 2015, 18:31   #9
TenLeftFingers
Registered User
 
TenLeftFingers's Avatar
 
Join Date: Sep 2013
Location: Ireland
Posts: 800
Quote:
Originally Posted by jbl007 View Post
No problem. Keep in mind, it's also in the log file, you attached.
Noted As long as it's away from search engines I'm happy enough.

Quote:
if linux: return path. Could it be that simple to fix it?
Let's hope so
TenLeftFingers is offline  
Old 31 July 2015, 20:56   #10
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
@tenleftfingers thanks for the report, and @jbl007 thanks alot for finding the cause

Quote:
Originally Posted by jbl007 View Post
if linux: return path. Could it be that simple to fix it?
Yes, that would indeed fix the problem, at least that one specifically. This function does serve more than one purpose (kind of), in that it also works to correct paths on Linux if the path in settings is somehow stored with the wrong case (say from a portable windows version). In addition to case, it also fixes problems related to different Unicode normalizations (yes OS X, I'm looking at *you*).

But as you discovered, it fails in this specific circumstance, and even worse, it fails even when the user hasn't done anything stupid on Linux.

The best fix for now is probably (and already implemented now for 2.5.33dev ):
Code:
if not windows and not macosx:
    if os.path.exists(path):
        return path
(If the path does not exist, then try to lookup the path using the algorithm)

https://github.com/FrodeSolheim/fs-u...8baf8e09b04733

Last edited by FrodeSolheim; 03 August 2015 at 23:28. Reason: Added link to commit on github.com
FrodeSolheim is offline  
Old 03 August 2015, 23:29   #11
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
2.5.33dev out now, please test
FrodeSolheim is offline  
Old 15 August 2015, 00:57   #12
TenLeftFingers
Registered User
 
TenLeftFingers's Avatar
 
Join Date: Sep 2013
Location: Ireland
Posts: 800
I recreated the folder with the lower case text and the scan ran perfectly. Nice work Frode
TenLeftFingers is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
CopyIcon won´t work with folder/drawer icons? elowan Amiga scene 28 17 February 2022 14:43
Override FS-UAE temp folder? Nova support.FS-UAE 13 03 March 2015 18:18
How to avoid /home/$user/FS-UAE folder ? ginko support.FS-UAE 2 12 July 2013 14:59
WinUAE won't detect roms in main folder Maren support.WinUAE 11 01 October 2010 10:39

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:16.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08942 seconds with 14 queries