chenfeng9527
V2EX  ›  问与答

关于路径问题

  •  
  •   chenfeng9527 · Oct 11, 2018 · 1886 views
    This topic created in 2948 days ago, the information mentioned may be changed or developed.

    请问在路径的末尾有'/'和没有'/'有什么区别吗? 例如 d:app/webapp/conf d:app/webapp/conf/ 的区别 我在资源管理器输入两个路径回车是没有区别的,不知道在后端根据路径读取文件是否会有差别呢

    4 replies  •  2018-10-11 17:12:38 +08:00
    iloveyou
    iloveyou
    Oct 11, 2018
    1
    对 linux 来说所有资源都是文件系统吧,后端没什么区别
    jasonyang9
    jasonyang9
    Oct 11, 2018
    2
    在 rsync 中有很大区别,
    mokeychan
    mokeychan
    Oct 11, 2018
    3
    我到现在都认为没啥区别的,如果有区别,静待大神
    vmebeh
    vmebeh
    Oct 11, 2018 via iPhone
    4
    末尾带分隔符可以确定最后一个名字是目录
    不带的需要根据实际情况做判断
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1032 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 577ms · UTC 23:07 · PVG 07:07 · LAX 15:07 · JFK 18:07
    ♥ Do have faith in what you're doing.