dylan-lang/opendylan — pull request #757 by danmidwood (2014-05-20 23:21:02+00:00)
Title: Handle directories in working-directory-setter

This fixes a bug that was causing an error when trying to set the
working directory with a `` type.

To reproduce, try to set the working directory (using
`working-directory() := ...` also presents the same error)

```
working-directory-setter("/Users/dan/repos/");
```

And the error was

```
No applicable method, applying {: string-as-locator} to {: {: }, "/Users/dan/repos/"}.
No applicable method, applying {function 0x44a76c} to #[{class
0x44ddc0}, "/Users/dan/repos/"].
```

The change edits the types in the generic `working-directory-setter` so
that the `file-system-locator` impl handles
`file-system-directory-locator` instead and the `string` impl creates a
`file-system-locator` (instead of `file-system-directory-locator`) from
the string.

The changes mirror the format used in the other directory
functions (`directory-empty?` for example).