Skip to content

LastModified in BclStorageFile using the wrong source value #18167

Closed
@BernhardGlueck

Description

@BernhardGlueck

Describe the bug

In BclStorageItem.cs the implementation of LastModifed seems to be wrong:

if (fileSystemInfo.Exists)
        {
            return new StorageItemProperties(
                fileSystemInfo is FileInfo fileInfo ? (ulong)fileInfo.Length : 0,
                fileSystemInfo.CreationTimeUtc,
                fileSystemInfo.LastAccessTimeUtc);
        }

DateModified in StorageItemProperties implies modification time ,not last access time, i guess LastWriteTimeUtc should be used.

To Reproduce

None

Expected behavior

No response

Avalonia version

11.2.3

OS

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp-wantedA contribution from the community would be most welcome.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions