Skip to content

Extracted file in the same dir as the archive? #184

@NoLooseEnds

Description

@NoLooseEnds

Thank you for this project, I'm currently looking into to this as a replacement for rar2fs, but "dropping" it in my current workflow unfortunately does not work out of the box because of the different "placement" of extracted files. I use it mainly for symlinks, so this breaks all preexisting symlinks.

Current behaviours:
rar2fs:
/directory/archive.rar -> /directory/extracted.ext

ratarmount:
/directory/archive.rar -> /directory/archive.rar/extracted.ext (Current behavior)

So, ratarmount creates a folder for the archive (named the same as the archive), instead of putting the files toplevel (same dir as the archive it self) like rar2fs.

Also, with multipart rar-files, all the other archive files is still present. This is a listing from a mounted directory containg a multipart archive:

-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r00
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r01
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r02
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r03
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r04
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r05
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r06
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r07
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r08
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r09
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r10
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r11
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r12
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r13
-rwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.r14
-rwxrwxrwx+ 1 950    950   35M Sep  8  2023 archive-testing.r15
drwxrwxrwx+ 1 950    950   96M Sep  8  2023 archive-testing.rar

While archive-testing.rar is a directory that contains the archive file(s).

Ideally, all the rar files should be "gone", and all that is left in the directory is the contents of the archive.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions