Isilon-POSH icon indicating copy to clipboard operation
Isilon-POSH copied to clipboard

File System Access

Open hershsa opened this issue 8 years ago • 3 comments

Are there cmdlets to check if a directory or file exists within this powershell module?

hershsa avatar Oct 06 '16 16:10 hershsa

Currently not. What is you use case?

vchrisb avatar Oct 10 '16 09:10 vchrisb

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.

hershsa avatar Oct 10 '16 11:10 hershsa

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.

jcardel avatar Mar 23 '17 10:03 jcardel