Giter Site home page Giter Site logo

Comments (3)

henrikstengaard avatar henrikstengaard commented on May 27, 2024

I initially considered supporting UAEFSDB metadata files when copying from an image file/disk to local directory they would be created and when copying from local directory to an image file/disk use them if they exist to read escaped filename and attributes.

UAEFSDB metadata files seems to work with most Amiga emulators, but was not aware of .uaem metadata files that appears to be introduced with FS-UAE. The content of those files is plain text and very simple, so they should be very easy to support following the format amitools support here https://github.com/cnvogelg/amitools/blob/2a6af0cd778b7e9d11a05618e6996e9a164301b7/amitools/fs/MetaInfoFSUAE.py.

Supporting both would be the best, but I will prioritize .uaem metadata files higher given it's simple format.

from hst-imager.

henrikstengaard avatar henrikstengaard commented on May 27, 2024

Having looked at FS-UAE documentation https://fs-uae.net/devel/docs/hard-drives.html with a simple example I realize that .uaem metadata files are not good enough to support all use cases.

The issue is filenames within Amiga filesystem can contain characters that Windows, Linux and macOS doesn't support. To fix this the metadata files must also save the original filename as it's seen on the Amiga and .uaem metadata files only contain protection attributes, timestamp and comment.

As an example take a look at Calephar WHDLoad game (files version), which contain the filename "CalepharFiles/data/#?+-". This can't copied to local directory as it's characters aren't support on Windows. Maybe Linux and MacOS can support it to some extent. But there a reason why this WHDLoad game is compressed using lzx and that is to preserve it's filename characters.

A simple approach to support filenames in .uaem metadata files could be to just having an extra line with the filename, something like:

----rwed 2013-02-12 21:20:52.02 hello
Hello#?+-\.data

That should not break the existing format and other tools could still support the first line with protection attributes, timestamp and comment.

from hst-imager.

henrikstengaard avatar henrikstengaard commented on May 27, 2024

I have done some research and testing of both WinUAE's UAEFSDB files and FS-UAE use of .uaem files. Actually .uaem does already support special AmigaOS filename characters by escaping them with percent + hex value like this "file%2a" to represent filename "file*".

from hst-imager.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.