Esempio n. 1
0
        public static DatalakePathProperties ConvertTo(this PathProperties subject)
        {
            subject.VerifyNotNull(nameof(subject));

            return(new DatalakePathProperties
            {
                LastModified = subject.LastModified,
                ContentEncoding = subject.ContentEncoding,
                ETag = subject.ETag.ToString(),
                ContentType = subject.ContentType,
                ContentLength = subject.ContentLength,
                CreatedOn = subject.CreatedOn,
            });
        }
Esempio n. 2
0
    public static DatalakePathProperties ConvertTo(this PathProperties subject, string path)
    {
        subject.VerifyNotNull(nameof(subject));
        path.VerifyNotEmpty(nameof(path));

        return(new DatalakePathProperties
        {
            Path = path,
            LastModified = subject.LastModified,
            ContentEncoding = subject.ContentEncoding,
            ETag = subject.ETag,
            ContentType = subject.ContentType,
            ContentLength = subject.ContentLength,
            CreatedOn = subject.CreatedOn,
        });
    }