Giter Site home page Giter Site logo

flagbug / flagftp Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 22.0 338 KB

FlagFtp is a FTP library for .NET, that supports various operations, such as retrieving file lists, write and read from/to files, retrieving file and directory infos, etc...

C# 100.00%

flagftp's People

Contributors

flagbug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

flagftp's Issues

Demo code in Readme

NetworkCredentials - last char 's' is wrong, if NetworkCredential is a class from System.Net.

Question

Using flagftp is it possible to download the selected file?

GetFiles error when Uri contains #

From http://flagftp.codeplex.com/workitem/1

I'm trying to remove a directory tree; so starting from base dir I traverse subdirs deleting files and finally dir itself.

    public void DeleteDir(FtpDirectoryInfo di)
    {
        var files = GetFiles(di.Uri).ToList();
        files.ForEach(f => { this.DeleteFile(f); });
        GetDirectories(di.Uri).ToList().ForEach(d => DeleteDir(d));
        DeleteDirectory(di);
    }

During recursion, if it finds a subfolder having # in its Uri, an error occurs; note that using FileZilla this is handled correctly, so it's not a OS problem.

Thanks,
Marco

Server returns different LIST data

The FTP server I access does give back a different LIST layout:

12-02-14 10:40AM

10019
12-02-14 11:08AM 10020
11-19-14 03:35AM 21
11-19-14 04:33AM 22
11-19-14 05:50AM 23
11-19-14 09:57AM 24
11-25-14 06:40PM 25
11-27-14 04:04AM 26
12-02-14 09:24PM 53 testharry.txt

So Regex in the function GetFileSystemInfos can not process it correctly.
Is there any thing I can do about it?
I could change the Regex, but how would the regex look like?

Thankx, Harry

DirectoryExists check fails if there's a trailing slash

Say you have var uri = ftp://host/directory/subdir/

If you were to call FtpClient.DirectoryExists(uri)

The method DirectoryExists checks whether subdir is in the folder ftp://host/directory/

But because of this line, the method actually tests whether the directory ftp://host/directory/subdir/ exists inside the directory ftp://host/directory/subdir/./

... which is always false.

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.