-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for System.IO.Directory #1883
Add support for System.IO.Directory #1883
Conversation
Automated fixes for code style.
…32e-7201-4b28-b512-0067d03aebe6 Code style fixes for nanoframework/nf-interpreter PR#1883
Automated fixes for code style.
…14f-84e5-4457-8779-9ff4efc29765 Code style fixes for nanoframework/nf-interpreter PR#1883
…terpreter into system_io_directory
Automated fixes for code style.
…baa-4b4d-47d6-a9a5-94374c4b7583 Code style fixes for nanoframework/nf-interpreter PR#1883
…d in Windows.Storage
…terpreter into system_io_directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looking good. Just replace those exception throwers and we are good.
Nicely done! 👍🏻
|
||
bool exists = false; | ||
FRESULT operationResult; | ||
FAULT_ON_NULL(folderPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be FAULT_ON_NULL_ARG
which will throw the ArgumentNull exception.
This one is for NullReference, which is not the intended exception.
NANOCLR_HEADER(); | ||
{ | ||
const char *filePathSrc = stack.Arg0().RecoverString(); | ||
FAULT_ON_NULL(filePathSrc); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
const char *filePathSrc = stack.Arg0().RecoverString(); | ||
FAULT_ON_NULL(filePathSrc); | ||
const char *filePathDest = stack.Arg1().RecoverString(); | ||
FAULT_ON_NULL(filePathDest); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
NANOCLR_HEADER(); | ||
{ | ||
const char *folderPath = stack.Arg0().RecoverString(); | ||
FAULT_ON_NULL(folderPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
NANOCLR_HEADER(); | ||
{ | ||
const char *folderPath = stack.Arg0().RecoverString(); | ||
FAULT_ON_NULL(folderPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
FRESULT operationResult; | ||
static FILINFO fileInfo; | ||
|
||
FAULT_ON_NULL(folderPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
FRESULT operationResult; | ||
static FILINFO fileInfo; | ||
|
||
FAULT_ON_NULL(folderPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
FILINFO fileInfo; | ||
|
||
const char *folderPath = stack.Arg0().RecoverString(); | ||
FAULT_ON_NULL(folderPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Thank you, the exceptions throwers were replaced. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist: