flagbug / flagftp Goto Github PK
View Code? Open in Web Editor NEWFlagFtp 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...
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...
I need upload or create file
is possible?
NetworkCredentials - last char 's' is wrong, if NetworkCredential is a class from System.Net.
Please add a license so the project can be used in projects that will be published or distributed (rather than remain individual-private/-personal).
Using flagftp is it possible to download the selected file?
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
The FTP server I access does give back a different LIST layout:
12-02-14 10:40AM
10019So 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
just a small bug.
You need to change [rwxt-] by [rwxts-] into the regular expression line 339 of FtpClient.cs to take also Directories with sgid bit and Files with suid bit.
( http://www.zzee.com/solutions/unix-permissions.shtml#setuid )
David
I also have some trouble with new Uri(directory, "..") (https://github.com/flagbug/FlagFtp/blob/master/FlagFtp/FlagFtp/FtpClient.cs#L310) which return the parent of the parent (with Uri without end /)
I change with :
new Uri(directory.AbsoluteUri.Remove(directory.AbsoluteUri.Length - directory.Segments.Last().Length))
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.