How to Test for Restricted Directory/Files

margret

Well-Known Member
Licensed User
Longtime User
Hello All,

When I use the File.IsDirectory(MyPath, MyDirectory) to test if the file is a directory and it returns True. If I then try to change to the directory, if it is restricted the code throws an exception error. All directories that came up in the list work but one listed: .android_secure. It shows by the name that it must be restricted. I am writing a function and I don't know how many directories or files I may hit that may be restricted on the NookColor device, so I need to catch them before they throw the error. Is there a way in code to test if they are restricted? :sign0163:

Thanks,

Margret
 

kickaha

Well-Known Member
Licensed User
Longtime User
Have a look at "Try..........Catch", if you try to change the directory in a Try Catch block any error will be intercepted and you can retrieve the error to inform the user gracefully.
 
Upvote 0

margret

Well-Known Member
Licensed User
Longtime User
Restricted Directories

Have a look at "Try..........Catch", if you try to change the directory in a Try Catch block any error will be intercepted and you can retrieve the error to inform the user gracefully.

Hello kickaha,

Thanks. I will do that and I am sure it will work! :sign0142:

Thank You,

Margret
 
Upvote 0

mkvidyashankar

Active Member
Licensed User
Longtime User
saving latitude and longitude data to JPG file

I am trying to save GPS coordinates but not successful
lat and lon are GPS coordinates extracted from GPS and it is working
but trying to save in JPEG using the below code

Sub clickbutton_Click
camera1.SceneMode=scene.ToUpperCase
camera1.ColourEffect=effect.ToUpperCase
camera1.GPSLatitude= lat
camera1.GPSLongitude=lon
camera1.TakePicture

End Sub

:sign0085:
 
Upvote 0
Top