| OLD | NEW |
| 1 .. _devguide-coding-fileio: | 1 .. _devguide-coding-fileio: |
| 2 | 2 |
| 3 ######## | 3 ######## |
| 4 File I/O | 4 File I/O |
| 5 ######## | 5 ######## |
| 6 | 6 |
| 7 .. contents:: | 7 .. contents:: |
| 8 :local: | 8 :local: |
| 9 :backlinks: none | 9 :backlinks: none |
| 10 :depth: 2 | 10 :depth: 2 |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 if (!file_system_ready_) { | 541 if (!file_system_ready_) { |
| 542 ShowErrorMessage("File system is not open", PP_ERROR_FAILED); | 542 ShowErrorMessage("File system is not open", PP_ERROR_FAILED); |
| 543 return; | 543 return; |
| 544 } | 544 } |
| 545 pp::FileRef ref(file_system_, dir_name.c_str()); | 545 pp::FileRef ref(file_system_, dir_name.c_str()); |
| 546 | 546 |
| 547 Then the ``pp::FileRef::MakeDirectory`` function is called. | 547 Then the ``pp::FileRef::MakeDirectory`` function is called. |
| 548 | 548 |
| 549 .. naclcode:: | 549 .. naclcode:: |
| 550 | 550 |
| 551 int32_t result = ref.MakeDirectory(pp::BlockUntilComplete()); | 551 int32_t result = ref.MakeDirectory( |
| 552 PP_MAKEDIRECTORYFLAG_NONE, pp::BlockUntilComplete()); |
| 552 if (result != PP_OK) { | 553 if (result != PP_OK) { |
| 553 ShowErrorMessage("Make directory failed", result); | 554 ShowErrorMessage("Make directory failed", result); |
| 554 return; | 555 return; |
| 555 } | 556 } |
| 556 ShowStatusMessage("Make directory success"); | 557 ShowStatusMessage("Make directory success"); |
| OLD | NEW |