create folders in sharing or SD card

Hey people,

I'm having a problem of creation of folders under or SD card.

bool ok;

QString hand = QDir::currentPath() + "shared/db";

QDir tmp (share);

{if(!tmp.) Exists())}

OK = tmp.mkpath (action);

}

OK will always be false.  I tried on the currentPath and use just share a db but does not work.

NOTE: I have set shared_access permissions.

With respect to the SD card, I tried:

QString sdcard = QDir::currentPath() + '... /.. '. ("/ removable/sdcard/db";)

as my way and it never works.

Any idea?  All I see in the docs is that I need permission from shared_access but that's all, therefore, it should work for me.  There is also nothing on how to access the SD card, I just noticed it was... /... / Return from the working folder...

Thank you

Matt M

Figured it out.

The link above says:

"Applications cannot create new directories in the working directory; they cannot access the folders listed below. »

I'll go this way...

QDir tmp;
OK = tmp.mkpath ("/ accounts/1000/removable/sdcard/misc");  Use mkpath where there was like mkdir will return false
{if (!) OK)}
int b = 999;
}

OK = tmp.mkpath ("/ accounts/1000/removable/sdcard/misc/db");  Use mkpath where there was like mkdir will return false
{if (!) OK)}
int b = 999;
}

QDir tmp2;
OK = tmp2.mkpath("/accounts/1000/shared/misc/db");  Use mkpath where there was like mkdir will return false
{if (!) OK)}
int b = 999;
}

Who creates misc/db on the SD card and the db in the misc folder in the town and that's what I was looking for.  Although shared below work, SD card is not...

Hope this helps someone else.

Tags: BlackBerry Developers

Similar Questions

  • Creating folders

    Is it possible to create folders on the media player or a card with an iPad. At the moment I don't have access to my Mac or PC.

    Thank you.

    No, you need to create a file using a computer.

  • Stop TB of creating folders on the server

    TB31.4 on W8.1 creates folders within TB & on the webmail server, and I couldn't stop it.

    I uninstalled / reinstalled TB due to other problems, created a new profile and added IMAP settings. Once connected, TB creates a box of RECEPTION and sometimes UNWANTED, on the server subfolder. While TB does not work I can explore the ones contained in Windows Explorer (...\Data\profile\ImapMail\,mail.domain.com, \INBOX.sbd) and delete, as well as on my server, but whenever I open TB, they are recreated.

    I also used the tool to subscribe and ensured that they were not, but it makes no difference.

    The server is not their creation because they are not in the Web mail until I opened TB.

    What can I try next? Is there a TB file with instructions on who should exist files I can delete or forced to "Refresh"?

    I found a solution. There is an check box labeled Allow server to replace these namespaces (screen attached). It is the same dialog window that Matt suggested above.

    After several changes of different settings I could refine it as a solution, otherwise seen as a difficulty.

    Thank you for everything!

  • How to create folders to organize my favorites on Firefox for Android?

    I have files created on my version of the laptop but I can not understand how to create on the android version.

    Hi Buhlee,
    Thank you for your question, sorry for the late reply. Unfortunately you can not create folders for the bookmarks on your Android. They must be created on the profile that allows to synchronize the device to a desktop version of Firefox.

  • How can I stop the sharing of credit card on iTunes?

    How can I stop the sharing of credit card on the same itunes account. \ ?

    sharing with WHO

  • How can I create folders with Applications folder

    I have a brain injury, so I have memory problems and I would like to create folders in the Applications folder so I can consolidate all my apps in a single folder in photo editing Applications. It is roughly the same method, which can be done in windows in the Start Menu. If someone could tell me how I am able to achieve this goal, it would be greatly appreciated.

    Open your application and choose the menu bar > new folder. You can then drag and drop them into this folder. However, I wouldn't put Apps in subfolders as what update of OS X is unable to see them there.

  • Bookmarks Manager no longer exists on 7.01. How to create folders and organize my favorites?

    Bookmarks Manager no longer exists on 7.01. How to create folders and organize my favorites?

    I don't use a Mac, but I think it is similar. Organize bookmarks, is renamed the show all bookmarks option.

  • Creating folders for playlists of music from Apple. Possible?

    If someone has identified a way to create folders and organize playlists of music from Apple or is not possible currently. I have my own playlists organized into folders, but all registered Apple 'For You' Playlists appear in a long list. I would like to organize by genre.

    Hi there morrispe,

    I understand that you want a better way to organize your playlists of music from Apple on your Mac. I would suggest that you try to use some smart playlists to achieve this function:

    If you want to create more complex rules - for example, with certain criteria corresponding to all the rules and other correspondence - you can create sets of rules or rules "nested". You can have up to five levels of nesting.

    12 iTunes for Mac: create a smart playlist

    https://support.Apple.com/kb/PH19487

    Thank you for coming to Apple Support communities!

  • Creating folders on iPhone 6s +.

    Hello

    I just upgraded from 5 to 6 s +.  All my apps are on my phone but I can not understand how to create folders.  I am holding down the app, but it starts to agitate as on the 5.  How to create folders on the 6s?

    The iPhone 6 uses Touch 3D. Take a look at this. I don't have the iPhone 6, but I think that the trick is simply to press the icon rather than hold them.

    http://www.IMore.com/how-move-or-delete-apps-3D-touch-world-iPhone-6s

  • How to create folders for my received emails iCloud on an iPad?

    How to create folders for received emails on an iPad Air iCloud?

    In the mailbox display, press the "Edit" button, then "New mailbox", type a name, choose a location and then "Save".

  • Create the Apple ID without credit card to the Japan

    I would like to create ID Apple without a credit card. My country is Myanmar. But in the list of countries, Myanmar is not included yet. So, I asked my uncle who stays at the Japan. He said that he cannot create ID without credit card. How can I do this?

    You can't buy at the Japan of Myanmar, so the question is moot.

  • Cannot create folders after update of Lenovo to tab 2 A10

    My Tablet has downloaded an update for Lenovo this morning. After the update, all my files are gone, and my apps are spread over two pages in alphabetical order. I'm unable to hold and drag to create new folders. When I take an application icon, it brings to the top of the home screen to move the shortcut to the application. How to create folders after update?

    I just thought of it. You must move the shortcuts to the application in one of the home screens, then you can hold and drag to create folders. This seems like an unnecessary extra step...

  • A way to create folders for custom message for e-mail on the Touchpad POP account?

    Is there a way to create folders for POP e-mail on the touchpad accounts? I can't work with each message limited to my Inbox or in the trash!

    Yes, aggravating circumstances.  But it is not possible AFAIK.  There may be a solution of homebrew, but I didn't go down the road of homebrew.

  • Cannot create folders in Windows Live Mail

    I'm used to be able to create folders nested within Windows Live Mail. A few days ago, I found that I just couldn't do it. The message displayed is "you cannot create a subfolder in this folder. Anyone know what is happening? Thank you.

    Post Windows Live questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • I opened outlook express and all my emails and I created folders disappeared. Are they gone forever? Ideas?

    I opened outlook express and all my emails and I created folders disappeared. Are they gone forever? Ideas?

    It looks like a new OE has been created? File | Identities. Y at - it a list?
     
    If this is not the case, look for your message store folder. While following the path, when you get to the identities, see if there is a second appearing, and if this identity has for folders dbx files you are missing.
     
    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
     
    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.
     
    The path to the message will be very similar to this:
     
    C:\Documents and Settings\Your User of utilisateur\Local Settings\Application Data\Identities\ {long string of letters & numbers} \Microsoft\Outlook Express

Maybe you are looking for