henrikstengaard / hst-imager

Hst Imager is an imaging tool to read and write disk images to and from physical drives
MIT License
21 stars 1 forks source link

Windows version: Files with leading/trailing spaces or dots #11

Open roc-eab opened 8 months ago

roc-eab commented 8 months ago

Hello,

First of all, thank you so much for adding the copy feature. It is quick and efficient and finally I am able to retire the "copy with WinUAE" that I have been using so far to create the PFS/3 images.

As a filesystem, NTFS manages difficult amiga files such as those with a leading/trailing spaces or trailing dots, but unfortunately the Windows explorer doesn't handle them. As a workaround, personally I either use the the syntax \?\"Drive:\DirPath\FileName1.") or WSL to rename or copy them.

As you know, there are some of these difficult files within the WHDLoad folders - e.g. [17:16:57 INF] WHDLoad\Games\A\Astate\data\dat\PIOCHE. (2.1 KB) [17:16:57 ERR] Failed to execute command 'Hst.Imager.Core.Commands.FsCopyCommand'

Currently the windows hst.imager is impacted by this Windows-Explorer's constrain, thus it reports an error while stopping the copy of the files.

Would it be possible to either somehow handle these files or, as an alternative approach, hst.imager could continue despite skipping the offending files?

Luckily, there is already a workaround :-) It is enough to use the Linux flavour of hst.imager within Windows Subsystem for Linux so it works like a champ.

So, if this would not be feasible, no issues in using the Linux's one but having in Windows would be juicy ;-)

Thank you in advance for your consideration and keep up the good work!

henrikstengaard commented 6 months ago

Thanks, it nice Hst Imager's copy functionality is useful to you and can replace other scripts.

Copying a file like "PIOCHE." should work as it doesn't contain special characters, so it's a bug I will look into.

There's another issue created about the filenames and this requires supporting UAEFSDB and .uaem metadata files to support Amiga filenames with special characters.