Giter VIP home page Giter VIP logo

Comments (10)

robinrodricks avatar robinrodricks commented on May 22, 2024

Can you try with GetListing("/")

from fluentftp.

LeVraiSylvain avatar LeVraiSylvain commented on May 22, 2024

same result. I tried

  • GetListing("")
  • GetListing(".")
  • GetListing("/")
  • GetListing("./")
  • GetListing("/./")

image

The behavior also occurs with subfolders

image

from fluentftp.

LeVraiSylvain avatar LeVraiSylvain commented on May 22, 2024

The "problem" is here.

image

Do you plan to support it in a future release?

from fluentftp.

robinrodricks avatar robinrodricks commented on May 22, 2024

Ok so if you are at the root directory, you cannot go one level up. The FTP spec does not allow for that. However if your working directory is NOT at the root level, then a path beginning with . can be supported.

from fluentftp.

LeVraiSylvain avatar LeVraiSylvain commented on May 22, 2024

I know that I cannot go one level up if I'm at the root directory. But many(all?) FTP servers return these 2 items. So I expect to see them in the object representation. I mean, I would prefer an non altered result.

*Also, my Sftp client returns these items. I want to avoid different behaviors.

from fluentftp.

robinrodricks avatar robinrodricks commented on May 22, 2024

Which 2 items? So far you've only talked about going one level up / listing parent folders so I have no idea which 2 items you mean.

from fluentftp.

LeVraiSylvain avatar LeVraiSylvain commented on May 22, 2024

My topic is about current directory and parent directory ;)

image

from fluentftp.

robinrodricks avatar robinrodricks commented on May 22, 2024

Oh I thought you wanted something else entirely. I thought you wanted to be able to list the parent directory, meaning when you pass GetListing("../") it should return the parent directory's files. If you simply want to add the items into the result, I can add an option for it. Wait a sec.

from fluentftp.

robinrodricks avatar robinrodricks commented on May 22, 2024

Added FtpListOption.IncludeSelfAndParent in the latest version. Does it work for ya?

https://www.nuget.org/packages/FluentFTP/16.2.1

from fluentftp.

LeVraiSylvain avatar LeVraiSylvain commented on May 22, 2024

It works.

Thx :)

from fluentftp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.