{"id":7179,"date":"2014-07-14T19:43:31","date_gmt":"2014-07-14T19:43:31","guid":{"rendered":"https:\/\/test.simple-talk.com\/uncategorized\/does-system-io-path-getfilename-work-on-network-paths-and-urls\/"},"modified":"2016-07-28T10:55:25","modified_gmt":"2016-07-28T10:55:25","slug":"does-system-io-path-getfilename-work-on-network-paths-and-urls","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/does-system-io-path-getfilename-work-on-network-paths-and-urls\/","title":{"rendered":"Does System.IO.Path.GetFileName Work on Network Paths and URLs?"},"content":{"rendered":"<p>Yes it does, but it&#8217;s going to return everything after the last slash in the string.&#160; This means if you have a query string on the end of a URL then you&#8217;ll get that back as well.&#160; As long as it&#8217;s just a path to the file, then you should be good to go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yes it does, but it&#8217;s going to return everything after the last slash in the string.&#160; This means if you have a query string on the end of a URL then you&#8217;ll get that back as well.&#160; As long as it&#8217;s just a path to the file, then you should be good to go.&hellip;<\/p>\n","protected":false},"author":46738,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[],"class_list":["post-7179","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/46738"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=7179"}],"version-history":[{"count":3,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7179\/revisions"}],"predecessor-version":[{"id":42403,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7179\/revisions\/42403"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=7179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=7179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=7179"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=7179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}