Isilon-POSH
Isilon-POSH copied to clipboard
File System Access
Are there cmdlets to check if a directory or file exists within this powershell module?
Currently not. What is you use case?
I was looking to check if the directory existed prior to creating a SMB share. I was syncing up our shares between our Prod and DR cluster and in some instances we don't have a location replicated. Got through it by just putting some logic in to skip those when I got an error on the creation of the share.
easy enough, just do a "test-path" in Powershell prior to creation. You can always have a share at the root of your ifs/data partition for this use. I do think there is some ways with the REST API to do this, just not implemented in this module.