On Mar 24 18:24, Martin Wege wrote:
> On Mon, Mar 24, 2025 at 5:00 PM Corinna Vinschen
> <corinna-cyg...@cygwin.com> wrote:
> >
> > Redirected to cygwin-developers
> >
> > ----- Forwarded message from Martin Wege via Cygwin <cyg...@cygwin.com> 
> > -----
> >
> > > Date: Mon, 24 Mar 2025 15:25:46 +0100
> > > From: Martin Wege via Cygwin <cyg...@cygwin.com>
> > > Subject: Cygwin 3.7 wishlist: read/write NTFS alternate data streams via
> > >       openat(O_XATTR)
> > > To: cyg...@cygwin.com
> > > Reply-To: Martin Wege <martin.l.w...@gmail.com>
> > >
> > > Hello,
> > >
> > > another wishlist entry (old one):
> > > read/write NTFS alternate data streams via openat(O_XATTR)
> > >
> > > Opening individual streams might be easy, as Corinna pointed out that
> > > cygwin_attach_handle_to_fd() can be used for that (i.e. open stream,
> > > and attach handle to fd via cygwin_attach_handle_to_fd()), but the
> > > virtual XATTR dir might be a challenge (beyond my skill at least).
> > >
> 
> Does the Windows API have an indicator when enumerating directory
> entries whether a file has alternate data streams (ADS)?

No. You have to open the file and ask for a stream list explicitely:
https://learn.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-file_stream_info


Corinna

Reply via email to