Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Solution?

@Guest: Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include a link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
martin

Re: Error listing directory - Code 267

@chuyrod: Sorry, I've missed your response. I've send you an email. Please keep our conversation there.
chuyrod

Re: Error listing directory - Code 267

Hello sir, just following up. Have you been able to identify a solution for this issue?

Jesse
Guest

Re: Solution?

@martin: Full paths is removed as you might see from the log but the information that matters should be there. As you can see during the upload process WinSCP belives that the .xlsx file is a directory instead of a file.
martin

Re: Solution?

@Guest: Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Guest

Re: Solution?

Hi,

When trying to upload any file from example \\hostname\c$ WinSCP seems to believe that it's a directory. I have tried with several different file types but we have the same issue with all of them. The version that is being used is 5.19.2
martin

Re: Solution?

@Guest: Please describe the problem into more details, so that we can tell, if it is really the same one.
Guest

Solution?

Hi, I have a customer that have the same issue. WinSCP thinks all files is directories. He is using the latest version of the program. Is there any fix available?
chuyrod

Error listing directory - Code 267

Hello, here is a new log file using the latest build sent to me. Thank you very much.
Jesse
martin

Re: Error listing directory - Code 267

I have sent you a new build.
chuyrod

Re: Error listing directory - Code 267

Hello, steps performed:
1. Open WinSCP
2. Connected to SFTP Site
3. Source: Browsed to U: folder path mapped to \\server\share
4. Destination: Browsed to sftp folder path
5. Highlighted files from source location
That is when empty directories or created instead of the filenames. See attached trace file.

Thank you,
martin

Re: Error listing directory - Code 267

Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.
chuyrod

Re: Error listing directory - Code 267

Howdy, thanks for the quick reply. See my answers below.
U: Drive is mapped to a UNC Path on Windows Server in my AD Profile as my home drive. In WinSCP the the file is recognize as a file Microsoft Excel Worksheet. For a successful command dir from the prompt, I enter the following --> dir u:"My Documents"\BCP
It doesn't matter the file type. It seems to be related to mapped UNCs paths. Looking forward to your reply as this has come up several time before.
martin

Re: Error listing directory - Code 267

@chuyrod: WinSCP sees the BCP GamePlan 2018.xlsx as a folder, is it? Or is it a file? How does it look like in WinSCP file panel? What do you get, if you do dir U:\My Documents\BCP in Windows command-line? What is the U:? A network drive? Hosted where? Isn't it Samba or something like that?
chuyrod

Error listing directory - Code 267

Using WinSCP 5.19.2 I am trying to upload a directory with several files. I am receiving the message Error listing directory. Empty directories are created instead of the files.
jesse.rodriguez@...

Source Files seen as directories.

I am having the same issue with The upload is being interrupted by the Error code 267.
ddnnkubi

solved

There should be no spaces in repository names. Now it works
ddnnkubi

File recognised as directory when trying to upload

Hi,

A customer of mine is currently facing a problem while uploading a file.

We are using version 5.15 of WinSCP. The used protocol is unencrypted FTP. The user is trying to upload a local .csv file to a remote server via dragg and drop. The upload is being interrupted by the Error code 267, The diretory name is invalid. It seems like, WinSCP thinks that the .csv file is a directory and tries to list all files in this directory. You can also see the error message in the attached picutre.

Thanks in advance for you help!
Dennis