Directory delete questions

Advertisement

nighttrain
Joined:
Posts:
4
Location:
Poland

Directory delete questions

Hi,
Have to questions cause can;t find it:

1) How to check if directory contains anything e.g folder or files, wahetever... or is it empty

1) How to remove emopty directory?

2) How to remove directory even if there content.

For instance for creating directory i am using below function:

Public Sub CreateDirectory(path As String)
        If session IsNot Nothing Then
            session.CreateDirectory(path)
        End If
    End Sub

Reply with quote

Advertisement

nighttrain
Joined:
Posts:
4
Location:
Poland

Get pictures path

I am using winscp to transfer files by ftp. Couple days ago i developed new module to show pictures in pictures box control. What i would like to achieve is to list picture's paths inside listbox or whatever else and then when click on this path to be able to open the picture in picturebox. The point is pictures are on remote location on my ftp and i have no idea is it possible using winscp (ftp) to use get their path and then using the paths to show up given picture inside picture box. Anyone has idea is it possible or not?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: Directory delete questions

nighttrain wrote:

Hi,
Have to questions cause can;t find it:

1) How to check if directory contains anything e.g folder or files, wahetever... or is it empty

1) How to remove emopty directory?

2) How to remove directory even if there content.

For instance for creating directory i am using below function:

Public Sub CreateDirectory(path As String)
        If session IsNot Nothing Then
            session.CreateDirectory(path)
        End If
    End Sub
Your duplicate (and answered) post on Stack Overflow:
https://stackoverflow.com/q/32942620/850848

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: Get pictures path

nighttrain wrote:

I am using winscp to transfer files by ftp. Couple days ago i developed new module to show pictures in pictures box control. What i would like to achieve is to list picture's paths inside listbox or whatever else and then when click on this path to be able to open the picture in picturebox. The point is pictures are on remote location on my ftp and i have no idea is it possible using winscp (ftp) to use get their path and then using the paths to show up given picture inside picture box. Anyone has idea is it possible or not?
Your duplicate (and answered) post on Stack Overflow:
https://stackoverflow.com/q/32945059/850848

Reply with quote

Advertisement

You can post new topics in this forum