RobotStudio event

PC SDK - Directories show up, but files don't

Hello Everyone,

I have a problem with PC SDK. When I use the: ControllerFileSystemInfo[] info = this.controller.FileSystem.GetFilesAndDirectories("*"); method on my real controller, it only returns folders to me, but no files in any directories, while with a virtual controller, it does return all the files too.

My virtual controller is made with the go offline option, so it's supposed to be identical (in options) with the real one.

I use VS2010, I have a desktop PC with Win7 - 64bit, that's my dev-env with VS, but I connect to the actual robot from my laptop, which has Win7 - 32bit. RW 5.14

The program itself seems to work fine, it's almost as if the robot just does not want to give me the information I request. Am I missing some kind of config option?

I'm willing to post more code, or details, if necessary.

Best regards:


LDev

Comments


  • I've actually sorted out this problem. Right after I admitted I need help, and posted this topic, a colleague of mine (who has nothing to do with PC programming), stepped in, and suggested, that why don't I search for "*.*" if I wanted files to appear.
    And they do appear then...
    So basically with a real controller:
    ControllerFileSystemInfo
    [] info = this.controller.FileSystem.GetFilesAndDirectories("*"); to have the folders and:
    if
     (controller.IsVirtual == false)
    { ControllerFileSystemInfo[] info2 = this.controller.FileSystem.GetFilesAndDirectories("*.*"); } to have the files.
    I'd have never guessed, that for the robot searching for * means directories only, so you have to search for *.* to have the files also.
    I hope this could still be help to others.
    Best regards:

    LDev2012-07-12 08:24:41
    LDev