New: Added command to change working directory
Fix: No longer fails to detect if a directory exists when there are no contents in the directory
Fix: Somewhat better logic used to determine if a remote handle exists or not. It now checks if there is a remoteHandle on the file. If there is no remoteHandle on the file it _assumes_ that the file doesn’t exist on the server. I also made sure all FMs associate the remoteHandle to new files AFTER it is known that the file addition succeeded.
Described how the lib currently works in regards to a connection being made for every command issued to the server.
Added new API command printWorkingDirectory. This is currently not useful because the connection is not saved between commands AND the cwd is not being tracked.
Cleaned up logic to check for existing directory.
Updated unit tests for all new commands.
lastModifiedAtPath can now be called asynchronously.
directoryExistsAtPath can now be called asynchronously.
Fix: When returning error back to callee it no longer nils out the _lastError before the callee has a chance to read the error. Instead, before the error is returned to the callee, the _lastError is copied and then sent back to the callee.
Updated readme to include command to check if a directory exists
Removed all “side-effect” logic, where the handle’s manager, exists flag, etc. is managed by the FM. All of this will now be managed in the FSHandle. Not only does this remove the responsibility from the FM (making it much more clean) it makes the FSHandle the only enforcer of the state of the handle — which it should be. This also simplifies the state logic as its down in only one location, the FSHandle class.
Updated comments. Removed many images that are no longer being used.
Fix: Use the same logic as changeDirectoryToPath: when checking if a directory exists, but do NOT set the lastError when the directory is not found.
Fix: URL encode strings before sending to FTP server. This prevents files with spaces in their names from failing.
Fix: Updated a few more methods to URL encode path before sending to server.
Adding todo to unit tests.
Fix: URL encode only those paths on the FTP server that exist. Paths that do not exist on the FTP server yet are not URL encoded.
Fix: Folders w/ spaces in their name can now be created/moved/deleted/etc.
v1.3.0 FTPKit now URL encodes files
Stubbed out new class for iCloud integration.
Fix: No longer uses stale rev number when uploading Dropbox files.
Fixed: Return correct object when printing working directory.
Merge pull request #8 from PeqNP/Buffer