to be
a problem slover

goland check path is dir or not

func(dir string) bool {
    info, err := os.Stat(dir)
    if err != nil || !info.IsDir() {
        return false
    }
    return true
}
赞(9) 打赏
欢迎转载,注明出处:刘世明的博客 » goland check path is dir or not

评论 4

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  2. #2

    Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

    binance3周前 (05-20)回复
  3. #3

    Just desire tto ssay your articl is as astounding. Thhe cllearness forr your pput up is simply grea andd
    i cann thiink yyou aare knowlledgeable iin thius subject.

    Finne tobether wih ylur permssion lett mee to clutch youjr RSS feed tto stay updatedd wirh drawwing cclose post.
    Thanks one millin annd lease continuue tthe enjoyaqble work.

    中文色情片3周前 (05-26)回复
  4. #4

    I every timke usd to reqd piwce off wrikting iin newws paperss butt noww as I aam a
    useer off webb therefore froim nnow I amm usin net for posts, tganks
    tto web.

    Stoop by mmy webpae – txxxvideos

    txxxvideos2周前 (05-28)回复

觉得文章有用就打赏一下作者

支付宝扫一扫打赏

微信扫一扫打赏