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
Location of your NetStorage auth file. Defaults to ~/.nsrc
, but environment variables will take precedence.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Encoding
Request the response in a specific encoding, for example, utf-8
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-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.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Path
Path of your directory within the NetStorage group.
Type: String
Parameter Sets: (All)
Aliases: None
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Section
EdgeRC section to retrieve authentication credentials from. Defaults to default
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SlashBoth
Sets the slash
additional option to both
.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug
, -ErrorAction
, -ErrorVariable
, -InformationAction
, -InformationVariable
, -OutVariable
, -OutBuffer
, -PipelineVariable
, -Verbose
, -WarningAction
, and -WarningVariable
. For more information, see about_CommonParameters.
Inputs
None
Outputs
System.Object
Related links
Updated 9 days ago