Comments (10)
Can you try with GetListing("/")
from fluentftp.
same result. I tried
- GetListing("")
- GetListing(".")
- GetListing("/")
- GetListing("./")
- GetListing("/./")
The behavior also occurs with subfolders
from fluentftp.
The "problem" is here.
Do you plan to support it in a future release?
from fluentftp.
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.
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.
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.
My topic is about current directory and parent directory ;)
from fluentftp.
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.
Added FtpListOption.IncludeSelfAndParent
in the latest version. Does it work for ya?
https://www.nuget.org/packages/FluentFTP/16.2.1
from fluentftp.
It works.
Thx :)
from fluentftp.
Related Issues (20)
- Error 550 file not found HOT 1
- ACTIVE mode FTP is raising Exception of Timeout but working in FileZilla and WinSCP HOT 7
- Resume Progress Problem
- timeout exception after download and upload all bytes HOT 8
- GetListing during DownloadFile/UploadFile async error HOT 4
- The AsyncFtpClientSocks5Proxy.cs need Add code HOT 2
- Connection lost between server and client not handled. HOT 12
- MLSD Last Modified DateTime.Kind HOT 2
- FtpCommandException: Code: 553 Message: Could not create file.
- Enhancement: Extend the built-in verification of all major file transfer methods with size comparison. HOT 5
- Support handling retries on Authentication Exceptions HOT 1
- Connection process hangs when attempting AutoConnect HOT 14
- Error in DownloadDirectory with progress parameter HOT 3
- Download with Progress throws exception HOT 9
- Download doesn't proceed when deployed to Azure Container HOT 16
- Process hang with GnuTLS on Linux/ARM64 HOT 9
- Upload within Parallel.ForEach() HOT 11
- Expection FluentFTP.Exceptions.FtpCommandException: Code: 550 Message: Command not recognized or allowed when use GetListing method HOT 2
- AuthenticateAsClientAsync doesn't respect ReadTimeout in a certain scenario HOT 4
- FtpException thrown downloading file with 49.0.2 works in 49.0.1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentftp.