Skip to content

Query Size on disk #43

@jtomori

Description

@jtomori

Hello,
first, thank you for sharing and maintaining p4vfs, it's very cool.

I'd like to ask if there's a way to programmatically query the Size on disk that I can see in the folder properties window. I'd like to know how much space a given p4vfs-managed directory takes on a disk.

I've tried various approaches, but without success. Mentioning some below:

  • CMD's dir command reports only the full size
  • Git BASH's du command reports the full size and hydrates files in the process
  • Sysinternals' du command reports both Size and Size on disk, but the latter is incorrect (there's a non-zero value)
  • Python's os.stat(file_path).st_size returns the full size

Best,
Juraj

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions