Differences
This shows you the differences between the selected revisions of the page.
| script_custom_listing_format_csv 2017-11-13 | script_custom_listing_format_csv 2026-01-16 (current) | ||
| Line 10: | Line 10: | ||
| <code powershell> | <code powershell> | ||
| param ( | param ( | ||
| - | $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xx-xx-xx@example.com/", | + | $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xxxxxxxxxxx...@example.com/", |
| $remotePath = "/path", | $remotePath = "/path", | ||
| $outFile = "listing.csv" | $outFile = "listing.csv" | ||
| Line 88: | Line 88: | ||
| <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:winscp="http://winscp.net/schema/session/1.0"> | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:winscp="http://winscp.net/schema/session/1.0"> | ||
| <!-- Using UTF-16 encoding that Microsoft Excel likes --> | <!-- Using UTF-16 encoding that Microsoft Excel likes --> | ||
| - | <xsl:output method="text" encoding="UTF-16"/> | + | <xsl:output method="text" encoding="UTF-16"·/> |
| - | <xsl:strip-space elements="*"/> | + | <xsl:strip-space elements="*"·/> |
| <xsl:template match='winscp:ls[winscp:result[@success="true"]]/winscp:files/winscp:file'> | <xsl:template match='winscp:ls[winscp:result[@success="true"]]/winscp:files/winscp:file'> | ||
| <xsl:text>"</xsl:text> | <xsl:text>"</xsl:text> | ||
| - | <xsl:value-of select="winscp:filename/@value"/> | + | <xsl:value-of select="winscp:filename/@value"·/> |
| <xsl:text>"	</xsl:text> | <xsl:text>"	</xsl:text> | ||
| - | <xsl:value-of select="winscp:size/@value"/> | + | <xsl:value-of select="winscp:size/@value"·/> |
| <xsl:text>	"</xsl:text> | <xsl:text>	"</xsl:text> | ||
| - | <xsl:value-of select="winscp:modification/@value"/> | + | <xsl:value-of select="winscp:modification/@value"·/> |
| <xsl:text>"
</xsl:text> | <xsl:text>"
</xsl:text> | ||
| </xsl:template> | </xsl:template> | ||