How to read the contents of a folder on a web server via ftp

This forum is for eXpress++ general support.
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: How to read the contents of a folder on a web server via

#11 Post by Eugene Lutsenko »

Thank you all. Your suggestions didn't change anything. The program behaves exactly as before. Copies and deletes some files and hangs. How to use DC_FileDel() I do not understand.

User avatar
rdonnay
Site Admin
Posts: 4745
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How to read the contents of a folder on a web server via

#12 Post by rdonnay »

Where does it hang? During the copy or the delete?
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: How to read the contents of a folder on a web server via

#13 Post by Eugene Lutsenko »

Hangs during deleting. Deletes multiple files seems to be OK as expected, but then hangs. I had thought that this might be due to cache or antivirus. When attempting to remove the latter is not a remote file in the file Manager I get a message that it is protected from deletion. But the attributes he is normal, ie it is simply a zipped file. Perhaps he remains a busy system.

PS
1. Now disabled the antivirus (AVIRA) - is not affected
2. Waited a long time (about 15 minutes), thought it might "come off". But no, hanging securely. Interrupt is possible only through the task Manager.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: How to read the contents of a folder on a web server via

#14 Post by Eugene Lutsenko »

Everything turned out fine so:

Code: Select all

      FOR j=1 TO LEN(aFileName)
          Name_SS = aFileName[j]
          Name_DD = Disk_dir+"\AID_DATA\Inp_data\"+aFileName[j]
          IF aFileName[j] = '_2_3_2_2.arx' .OR. aFileName[j] = '_2_3_2_3.arx'
             COPY FILE (Name_SS) TO (Name_DD)
          ELSE
             RenameFile(Name_SS, Name_DD)
          ENDIF
      NEXT
Although I did not understand what was not working previous versions.

Thank you for your support and useful and pleasant communication!

Post Reply