How does Symbian s60 check whether a folder exists?

Source: Internet
Author: User
Purpose: Check whether the folder exists. If it does not exist, create a folder.

  1. // Test environment: Symbian s60 3rd fp2 V1.1
  2. // Header file: bautils. h
  3. // Library file: bafl. Lib
  4. _ Partition (kpathname, "C: // test //";
  5. Tbool value = baflutils: folderexists (ccoeenv: static ()-> fssession (), kpathname );
  6. If (! Value)
  7. {
  8. Ccoeenv: static ()-> fssession (). mkdir (fullpath );
  9. }

Note:CodeThe red part of the folder. If this is missing, the returned value is etrue no matter whether the current folder exists;

[The end by coderwu]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.