droe / acefile

read/test/extract ACE 1.0 and 2.0 archives in pure python

Home Page:https://www.roe.ch/acefile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Restore NTFS streams on Windows

droe opened this issue · comments

NTFS streams seem to be handled by archiving them using a special filename. This needs to be investigated (need sample files!) and implemented as appropriate.

BOOL    BASE_PATHFUNC_IsNTFSStreamName(PCHAR Path)
{
PCHAR     Ptr;

  if ((Ptr = strrchr(Path, ':')))
  {
    return *(Ptr + 1) != '\\';
  }
  else
  {
    return 0;
  }
}

So with the scheme filename:streamid current behaviour is to convert the filename to filename_streamid, so data is accessible. However, on Windows, the streams should be restored to streams, not separate files.