Create remote directory :: Support Forum :: WinSCP
winscp.net › forum › viewtopicDec 15, 2016 · foreach (FileSystemInfo fileInfo in fileInfos) { string remoteFilePath = session.TranslateLocalPathToRemote(fileInfo.FullName, localPath, remotePath); if (fileInfo.Attributes.HasFlag(FileAttributes.Directory)) { // Create remote subdirectory, if it does not exist yet if (!session.FileExists(remoteFilePath)) { session.CreateDirectory(remoteFilePath); } } }
Scripting and Task Automation :: WinSCP
winscp.net › eng › docsCreates remote directory: mv: Moves or renames remote file: open: Connects to server: option: Sets or shows value of script options: put: Uploads file from local directory to remote directory: pwd: Prints remote working directory: rm: Removes remote file: rmdir: Removes remote directory: session: Lists connected sessions or selects active session: stat: Retrieves attributes of remote file: synchronize: Synchronizes remote directory with local one
mkdir command - WinSCP
https://winscp.net/eng/docs/scriptcommand_mkdir29.05.2020 · When converting script to .NET Assembly, map mkdir command to Session.CreateDirectory method. Parameters mapping: Command parameter directory maps to method parameter path. You have to convert relative path to absolute path . For example, following script snippet: cd /home/martinp mkdir private. Advertisement.
mkdir command - WinSCP
winscp.net › eng › docsWhen converting script to .NET Assembly, map mkdir command to Session.CreateDirectory method. Parameters mapping: Command parameter directory maps to method parameter path. You have to convert relative path to absolute path . For example, following script snippet: cd /home/martinp mkdir private. Advertisement.