[wp-trac] [WordPress Trac] #29610: FTPext Filesystem class can't detect isWritable, isReadable correctly
WordPress Trac
noreply at wordpress.org
Tue Jun 16 05:37:45 UTC 2015
#29610: FTPext Filesystem class can't detect isWritable, isReadable correctly
----------------------------+-------------------------
Reporter: programmin | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Filesystem API | Version: 2.5
Severity: normal | Resolution: maybelater
Keywords: | Focuses:
----------------------------+-------------------------
Changes (by dd32):
* status: new => closed
* resolution: => maybelater
* milestone: Awaiting Review =>
Comment:
I don't personally think parsing the permissions returned by the FTP
server is reliable enough, my reasoning being that it only gives a "maybe"
answer - the FTP server can still block the operation, and it may still
accept it based on other ACLs.
FTP servers don't offer a method of testing if something can be done, they
operate on a "try and see" method.
The only way to tell if a file is writable is to attempt writing to it.
Unfortunately I'm closing this as maybelater until a time where a patch
can be offered that actually achieves the goal.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29610#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list