Which methods are supported by Get-ChildItem in PowerShell?


There are methods or functions which are useful for directories and file operations.

Methods for the directory.

TypeName: System.IO.DirectoryInfo

Name                      MemberType
----                      ----------
Create                    Method
CreateObjRef              Method
CreateSubdirectory        Method
Delete                    Method
EnumerateDirectories      Method
EnumerateFiles            Method
EnumerateFileSystemInfos  Method
Equals                    Method
GetAccessControl          Method
GetDirectories            Method
GetFiles                  Method
GetFileSystemInfos        Method
GetHashCode               Method
GetLifetimeService        Method
GetObjectData             Method
GetType                   Method
InitializeLifetimeService Method
MoveTo                    Method
Refresh                   Method
SetAccessControl          Method
ToString                  Method

Methods for Files.

TypeName: System.IO.FileInfo

Name                      MemberType
----                      ----------
AppendText                Method
CopyTo                    Method
Create                    Method
CreateObjRef              Method
CreateText                Method
Decrypt                   Method
Delete                    Method
Encrypt                   Method
Equals                    Method
GetAccessControl          Method
GetHashCode               Method
GetLifetimeService        Method
GetObjectData             Method
GetType                   Method
InitializeLifetimeService Method
MoveTo                    Method
Open                      Method
OpenRead                  Method
OpenText                  Method
OpenWrite                 Method
Refresh                   Method
Replace                   Method
SetAccessControl          Method
ToString                  Method

Updated on: 22-Jan-2020

298 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements