Object

Measure-NetstorageObject

Synopsis

Get object stat.

Syntax

Measure-NetstorageObject [-Path] <String> [-Encoding <String>] [-Implicit] [-SlashBoth] [-AuthFile <String>] [-Section <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Retrieves the stat structure (information) for a named file, symlink, or directory.

Note: You don't need to prepend paths with the upload directory CP code, this is implied.

Parameters

‑AuthFile

A location of your NetStorage auth file. Defaults to ~/.nsrc, but environment variables will take precedence.

‑Encoding

A specific encoding to use when requesting a response, for example, utf-8.

‑Implicit

Adding this argument to the action header will look for an implicit directory that fits the specified path.

Note that including this argument will result in slower output, as it requires more NetStorage resources. Therefore, it's recommended that you use it sparingly.

‑Path
Required

A path of your directory within the NetStorage group.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

‑SlashBoth

Sets an additional slash option to both.

Related Links