Posted by JacobSingh on June 23, 2009 at 11:05am
2 followers
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | file system |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
Inspired from: #395472: Plugin Manager in Core: Part 1 (backend)
The victory condition for this is:
Users should be able to use SSH, FTP and FTP with stream wrappers to perform the following operations:
->copyDirectory(source, remote_destination)
->copyFile(source, remote_file)
->mkdir(remote_dir)
->rmdir(remote_dir)
->rmFile(remote_dir)
Also lumped in here for no good reason other than history is a new function in system to allow for downloading files via HTTP and storing them in the files directory.
Comments
#1
This is chx's patch from: http://drupal.org/comment/reply/395472#comment-1732364
with a few of my changes to the function is system.module
#2
At least the SSH Filetransfer class is broken:
function connect() {$this->connection = @ssh2_connect($setings['hostname'], $this->port);
if (!$this->connection) {
throw new FileTransferException('SSH Connection failed.');
}
if (!@ssh2_auth_password($this->connection, $this->username, $this->password)) {
throw new FileTransferException('The supplied username/password combination was not accepted.');
}
}
Where is $setings coming from?
Even if it was $settings, it still wouldn't work.
#3
@Dries: Are you going to roll back the patch with the bugs in it or should chx/I re-roll based on what is in there?
#4
subscribe... where does this actually sit?
#5
I tried to fork off the previous issue: #395472: Plugin Manager in Core: Part 1 (backend) to try and get more clarity, but it never moved.
-J