private bool IsConcatenationFile(DirectoryEntry entry)
        {
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                return(ConcatenationFileSystem.HasConcatenationFileAttribute(entry.Attributes));
            }
            else
            {
                string name     = Util.GetUtf8StringNullTerminated(entry.Name);
                string fullPath = PathTools.Combine(Path, name);

                return(ParentFileSystem.IsConcatenationFile(fullPath));
            }
        }
Example #2
0
        private bool IsConcatenationFile(DirectoryEntry entry)
        {
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                return(ConcatenationFileSystem.HasConcatenationFileAttribute(entry.Attributes));
            }
            else
            {
                string name     = StringUtils.NullTerminatedUtf8ToString(entry.Name);
                var    fullPath = PathTools.Combine(_path.ToString(), name).ToU8Span();

                return(ParentFileSystem.IsConcatenationFile(fullPath));
            }
        }