Skip to content
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 path expansion for files capability #128

Merged
merged 1 commit into from
Jan 12, 2016
Merged

Conversation

NickAb
Copy link
Contributor

@NickAb NickAb commented Dec 29, 2015

files capability now support sending contents of directories, not only files

Usage examples:

"D:\\preinstalled\\": "",
"D:\\preinstalled\\": "downloads",
"D:\\preinstalled\\settings.xml": "data\\",
"D:\\preinstalled\\settings.xml": "data"

Fixes #125

var phoneDirectoryName = this.fileSystem.Path.GetDirectoryName(phonePath);
if (phoneDirectoryName == null)
{
throw new ArgumentException("phonePath could not be null", "phonePath");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

кажется phonePath не может быть null когда речь о файле, но может быть когда речь шла о папке. Ошибка может быть не понятна на фоне всего словаря в capability. Можно же уточнить ошибку информацией из fileInfo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Оно никогда не может быть null, т.к. там пустая строка возвращается, если передать только папку. Там null только если на вход подать null

`files` capability now support sending contents of directories, not only files

Usage examples:
"D:\\preinstalled\\": "",
"D:\\preinstalled\\": "downloads",
"D:\\preinstalled\\settings.xml": "data\\",
"D:\\preinstalled\\settings.xml": "data"
@NickAb
Copy link
Contributor Author

NickAb commented Dec 30, 2015

@skyline-gleb пачка тесов упала из-за того, что они в одной сессии, которая не смогла подклчиться к приложению из-за того, что хост машина была под высокой нагрузкой от проверок Чапаева

@NickAb NickAb closed this Dec 30, 2015
@NickAb NickAb reopened this Dec 30, 2015
@NickAb NickAb closed this Dec 30, 2015
@NickAb NickAb reopened this Dec 30, 2015
@NickAb NickAb closed this Dec 30, 2015
@NickAb NickAb reopened this Dec 30, 2015
@NickAb NickAb closed this Jan 11, 2016
@NickAb NickAb reopened this Jan 11, 2016
skyline-gleb added a commit that referenced this pull request Jan 12, 2016
Add path expansion for files capability
@skyline-gleb skyline-gleb merged commit 1b34741 into master Jan 12, 2016
@skyline-gleb skyline-gleb deleted the deploy-files branch January 12, 2016 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants