Skip to content
This repository has been archived by the owner on Jan 26, 2018. It is now read-only.

FS API discrepancies #51

Open
1lann opened this issue Jun 20, 2014 · 0 comments
Open

FS API discrepancies #51

1lann opened this issue Jun 20, 2014 · 0 comments
Labels

Comments

@1lann
Copy link
Owner

1lann commented Jun 20, 2014

gamax92:

fs.delete will give "Access denied" rather then "Access Denied"
fs api doesn't check for Invalid paths, like ".." or "../something"
fs.move("f","f\a") will succeed and the folder is lost, CC will error "Can't move a directory inside itself"
fs.copy("f","f\a") will succeed and nothing happens, CC will error "Can't copy a directory inside itself"
fs.move will succeed if the first path doesn't exist, CC will error "No such file"
fs.move will succeed if the second path exists and do nothing, CC will error "File exists"
fs.copy will succeed if the first path doesn't exist, CC will error "No such file"
fs.copy will succeed if the second path exists and do nothing, CC will error "File exists"
fs.copy("rom","rom") will succeed, CC will error "Access denied" (Yes, denied is supposed to be lowercase)
fs.move("rom","sdfs") will crash the emulator, CC will error "Access denied"
fs.move("rom","rom") will succeed, CC will error "Access denied"
fs.makeDir will succeed on files, CC will error "File exists"
fs.makeDir will succeed on "rom" or "rom/sda" and do nothing, CC will error "Access Denied"
fs.getFreeSpace returns nothing
fs.getSize always returns 2097152
fs.getDrive does nothing
fs.getName should give "root" if the name is ""
fs.list crashes the emulator if a file is specified
fs.find doesn't clean paths
when cleaning paths, the following characters are dropped: ":<>?|
Incase there is confusion, thats double quote, colon, left triangle bracket, right triangle bracket, question mark, and pipe
fs.getDir should give ".." if the name is ""
when cleaning paths, if your piece is ".." and the stack is empty or the last piece is also a "..", then add it to the stack
fs.find("*") is not adding "rom"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant