File tree Expand file tree Collapse file tree 1 file changed +32
-4
lines changed
src/GWallet.Frontend.Console Expand file tree Collapse file tree 1 file changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -515,10 +515,38 @@ let main argv =
515515 failwith " No args"
516516 | 1 when argv.[ 0 ] = " hello" ->
517517
518- let appData = Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData)
519- let userProfile = Environment.GetFolderPath( Environment.SpecialFolder.UserProfile)
520- let myDocs = Environment.GetFolderPath( Environment.SpecialFolder.MyDocuments)
521- let personal = Environment.GetFolderPath( Environment.SpecialFolder.Personal)
518+ let appDataO = Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData)
519+ let appData =
520+ if isNull appDataO then
521+ " <null>"
522+ elif appDataO = String.Empty then
523+ " <empty>"
524+ else
525+ appDataO
526+ let userProfileO = Environment.GetFolderPath( Environment.SpecialFolder.UserProfile)
527+ let userProfile =
528+ if isNull userProfileO then
529+ " <null>"
530+ elif userProfileO = String.Empty then
531+ " <empty>"
532+ else
533+ userProfileO
534+ let myDocsO = Environment.GetFolderPath( Environment.SpecialFolder.MyDocuments)
535+ let myDocs =
536+ if isNull myDocsO then
537+ " <null>"
538+ elif myDocsO = String.Empty then
539+ " <empty>"
540+ else
541+ myDocsO
542+ let personalO = Environment.GetFolderPath( Environment.SpecialFolder.Personal)
543+ let personal =
544+ if isNull personalO then
545+ " <null>"
546+ elif personalO = String.Empty then
547+ " <empty>"
548+ else
549+ personalO
522550 let hello = sprintf " appData= %s ; userProfile= %s ; myDocs= %s ; personal= %s " appData userProfile myDocs personal
523551
524552 Console.WriteLine " hello"
You can’t perform that action at this time.
0 commit comments