Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloud file losing identity #131

Open
LNKLEO opened this issue Apr 29, 2024 · 1 comment
Open

cloud file losing identity #131

LNKLEO opened this issue Apr 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@LNKLEO
Copy link

LNKLEO commented Apr 29, 2024

Expected Behavior

image

Current Behavior

image

files in onedrive only (not sync to local) will has pair of "()" in file size to indicate. it file size is xxx but not in local. but when using Terminal-Icons, this indicator is missing.

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Module version used: v0.11.0
  • Operating System and PowerShell version:
  • Microsoft Windows 10.0.26200 (Windows 11 Insider Build)
  • PowerShell 7.5.0-preview.3 (Nightly build)
@devblackops devblackops added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels May 23, 2024
@mattcargile
Copy link

This is how pwsh is doing it.

      public static string LengthString(PSObject instance)
        {
            return instance?.BaseObject is FileInfo fileInfo
                ? fileInfo.Attributes.HasFlag(FileAttributes.Offline)
                    ? $"({fileInfo.Length})"
                    : fileInfo.Length.ToString()
                : string.Empty;
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants