Max Kozlov

Results 183 comments of Max Kozlov

@darkoperator , btw, my MR doesn't remove Newtonsoft depencency itself ``` ```

@NeoDN, if your security policies require signed libraries, maybe you yourself have access to code signing certificates and then you may sign everything you need yourself .. as we do...

>I got the error message for failure You forgot to show the message :) and ``` powershell try { $session = new-sftpsession } catch { $session = new-sftpsession } ```...

https://github.com/darkoperator/Posh-SSH/blob/f00564d72ff566d446b9e858e89bff5c1a0a3013/Source/PoshSSH/PoshSSH/GetSftpItem.cs#L180 This is how FileInfo/DirectoryInfo seems to work ``` powershell PS C:\> $fi = [System.IO.FileInfo]::new('/home/me/bebebe\ aaa.txt') PS C:\> $fi.name aaa.txt PS C:\> $fi = [System.IO.FileInfo]::new("'/home/me/archivo de prueba.txt'") PS C:\> $fi.name...

remove `| fl` from `$SFTPSession = ...` and use $sftpsession everywhere, for ex. `Get-SftpItem -SftpSession $SFTPSession` and do not use `| fl` in scripts if you assign in to variables

You may try to play with `Session.ConnectionInfo.Encoding` setting ``` powershell $sftp = New-SftpSession ..... $sftp.Session.ConnectionInfo.Encoding = [System.Text.Encoding]::GetEncoding(1252) ``` with your code page of course

did a test (with standard dash and unicode from U+2012 to U+2015) no problem with ubuntu (default utf-8) Try outputting this file through an sftp session using `Get-SFTPChildItem` to check...

I think encoding of "en dash" ( **–** U+2013 ?) in $value not correct for test you may try to list contents with `Get-SFtpChildItem` and pass result to `Get-SFTPItem`. This...

I don't like the "-1" in your _UserId_ and _Length_ outputs, it seems like something is wrong with the access or it could be an OS issue. I still think...