file - Find if zip folder is present in c# -


Need Quick Help Assume that a ZIP folder named by name test (d: \ test.zip) Is . I need to check whether zipped folder (i.e. test ) d -directory is present or what is there, it does not make any difference here 'and' code 'test Transfer to .zip in other directories

I tried to use the Directory.GetDirectories () method, but it will work only for folders.

You have a file and method to check the file File .Exists (path) can be used. To move a file (Source, destination) .

Example:

  var zipFile = "d: \\ test.zip"; Var destination = "d: \\ some \ \ other \\ directory"; If (file.exists (zipfile)) {File.Move (zipfile, path.comben (destination, path.gETFileName (zipfile))); }   

See more for more information.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -