chenfeng9527
V2EX  ›  问与答

关于路径问题

  •  
  •   chenfeng9527 · Oct 11, 2018 · 1482 views
    This topic created in 2780 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
        1
    iloveyou  
       Oct 11, 2018
    对 linux 来说所有资源都是文件系统吧,后端没什么区别
    jasonyang9
        2
    jasonyang9  
       Oct 11, 2018
    在 rsync 中有很大区别,
    mokeychan
        3
    mokeychan  
       Oct 11, 2018
    我到现在都认为没啥区别的,如果有区别,静待大神
    vmebeh
        4
    vmebeh  
       Oct 11, 2018 via iPhone
    末尾带分隔符可以确定最后一个名字是目录
    不带的需要根据实际情况做判断
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1055 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 18:43 · PVG 02:43 · LAX 11:43 · JFK 14:43
    ♥ Do have faith in what you're doing.