Topic "Directory delete questions"

Author Message
nighttrain
[View user's profile]

Joined: 2015-10-05
Posts: 3
Location: Poland
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:

Code:
Public Sub CreateDirectory(path As String)
        If session IsNot Nothing Then
            session.CreateDirectory(path)
        End If
    End Sub
Advertisements
nighttrain
[View user's profile]

Joined: 2015-10-05
Posts: 3
Location: Poland
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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
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:

Code:
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:
http://stackoverflow.com/questions/32942620/delete-directory-with-winscp-net-assembly
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
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:
http://stackoverflow.com/questions/32945059/load-picture-from-ftp-to-picturebox-with-winscp-net-assembly
nighttrain
[View user's profile]

Joined: 2015-10-05
Posts: 3
Location: Poland
those were my questions - anyway thanks.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License