Giter Club home page Giter Club logo

psftpprovider's People

Contributors

arnavion avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

psftpprovider's Issues

Support for -Persist option

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?

Publish to PowerShell Gallery

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

Getting a New-PSDrive fails with error

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...

Remove ArgumentToEncodingTransformationAttribute copied from PS Core's source when PS Core exposes it or provides an alternative

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.

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.