arnavion / psftpprovider Goto Github PK
View Code? Open in Web Editor NEWPowerShell provider for FTP sites
License: Apache License 2.0
PowerShell provider for FTP sites
License: Apache License 2.0
If I use the following command;
New-PSDrive -Name "D" -PSProvider "PsFtp" -Hostname "$host" -Port 21 -Root "/" -Credential $Credentials -Persist
I get the following error;
New-PSDrive : When you use the Persist parameter, the root must be a file system location on a remote computer.
I've tried to use other values for the root, but I cannot seem to get it to work. Is this option supported?
The README is misleading when it says you can add a drive without credentials. Even anonymous FTP access requires credentials.
Either remove the misleading example, or automatically use anonymous credentials for drives created without credentials.
Hey man, awesome library! Is it possible to have this published (if done already, instructions on the readme) on PowerShell online gallery. So it can be installed like:
Install-Module PsFtpProvider
Excellent implementation as a PowerShell provider! To get greater usage of this module and make it easier for others to install it could you publish it to the PowerShell Gallery?
Many thanks
It's moved again, now to https://github.com/robinrodricks/FluentFTP
Maybe update the version too (16.*
-> 19.*
)
I started using your PsFTPProvider and was able to compile w/o any errors. When creating a new PS-Drive I get the following error:
PS C:\[...]\PsFtpProvider\bin\Debug\net46\publish> New-PSDrive -PSProvider PsFtp -Name 'MyFTPSite' -Hostname 'ftp.rz.uni-wuerzburg.de' -Port 21 -Root /
New-PSDrive : Object reference not set to an instance of an object.
At line:1 char:1
+ New-PSDrive -PSProvider PsFtp -Name 'MyFTPSite' -Hostname 'ftp.rz.uni ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-PSDrive], NullReferenceException
+ FullyQualifiedErrorId : NewDriveProviderException,Microsoft.PowerShell.Commands.NewPSDriveCommand
For testing purposes I'm using a publicly available FTP server with anonymous access.
The provider is loaded
PS C:\[...]\PsFtpProvider\bin\Debug\net46\publish> Get-PSProvider
Name Capabilities Drives
---- ------------ ------
Registry ShouldProcess, Transactions {HKLM, HKCU}
Alias ShouldProcess {Alias}
Environment ShouldProcess {Env}
FileSystem Filter, ShouldProcess, Credentials {C, A, D, H...}
Function ShouldProcess {Function}
Variable ShouldProcess {Variable}
PsFtp Credentials {}
Do you have any clue what goes wrong here? If you need any further information pls let me know...
Tracking issue for PowerShell/PowerShell#6181
PS Core uses an argument transformation attribute ArgumentToEncodingTransformationAttribute
on its FileSystemProvider
commandlets' -Encoding
parameters to convert well-known encoding names like UTF8
to System.Text.Encoding
objects. This attribute is marked internal so PsFtpProvider cannot use it.
For now, the user needs to type gc -Encoding ([System.Text.Encoding]::UTF8)
instead of gc -Encoding UTF8
and so on.
PsFtpProvider has a copy of ArgumentToEncodingTransformationAttribute
from PS Core's source. Remove it when upstream exposes it or provides an alternative.
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.