Bugfix adding offset to directory listing to handle pagination

Currently listing contents of directories doesn't take in a offset so you can't really page through the children of a folder. Conversion to a string is done for the parameter because a 0 makes it fail, most likely because it is false-y.