{"action":"created","issue":{"url":"https://api.github.com/repos/EvilBeaver/oscript-library/issues/41","labels_url":"https://api.github.com/repos/EvilBeaver/oscript-library/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/EvilBeaver/oscript-library/issues/41/comments","events_url":"https://api.github.com/repos/EvilBeaver/oscript-library/issues/41/events","html_url":"https://github.com/EvilBeaver/oscript-library/issues/41","id":121866085,"number":41,"title":"ВременныеФайлы: доработать получение имен и путей для новых файлов (добавить СлучайноеИмяФайла)","user":{"login":"artbear","id":2920817,"avatar_url":"https://avatars.githubusercontent.com/u/2920817?v=3","gravatar_id":"","url":"https://api.github.com/users/artbear","html_url":"https://github.com/artbear","followers_url":"https://api.github.com/users/artbear/followers","following_url":"https://api.github.com/users/artbear/following{/other_user}","gists_url":"https://api.github.com/users/artbear/gists{/gist_id}","starred_url":"https://api.github.com/users/artbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artbear/subscriptions","organizations_url":"https://api.github.com/users/artbear/orgs","repos_url":"https://api.github.com/users/artbear/repos","events_url":"https://api.github.com/users/artbear/events{/privacy}","received_events_url":"https://api.github.com/users/artbear/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EvilBeaver/oscript-library/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"artbear","id":2920817,"avatar_url":"https://avatars.githubusercontent.com/u/2920817?v=3","gravatar_id":"","url":"https://api.github.com/users/artbear","html_url":"https://github.com/artbear","followers_url":"https://api.github.com/users/artbear/followers","following_url":"https://api.github.com/users/artbear/following{/other_user}","gists_url":"https://api.github.com/users/artbear/gists{/gist_id}","starred_url":"https://api.github.com/users/artbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artbear/subscriptions","organizations_url":"https://api.github.com/users/artbear/orgs","repos_url":"https://api.github.com/users/artbear/repos","events_url":"https://api.github.com/users/artbear/events{/privacy}","received_events_url":"https://api.github.com/users/artbear/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-12-12T16:56:36Z","updated_at":"2016-01-27T11:13:43Z","closed_at":null,"body":"Сейчас у нас используется метод `НовоеИмяФайла`\r\nИМХО имя этого метода не отвечает своему функционалу, т.к. возвращает не имя файла, а полный путь.\r\nВозникает путаница с терминологией: у нас есть путь, полное имя, имя файла и есть метод, который должен возвращать имя, а возвращать полный путь/полное имя.\r\n\r\nПредлагаю разделить функционал этого метода на два метода:\r\n- `НовоеИмяФайла` - получает именно имя нового файла, без пути к файлу\r\n- `НовоеПолноеФайла` - получает именно полное имя нового файла, т.е. полный путь с именем файла\r\n\r\nНовые функции удобны, когда нужно разделять работу с новыми временными файлами в нужном каталоге или работу со временными файлами из временного каталога системы.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/EvilBeaver/oscript-library/issues/comments/175565393","html_url":"https://github.com/EvilBeaver/oscript-library/issues/41#issuecomment-175565393","issue_url":"https://api.github.com/repos/EvilBeaver/oscript-library/issues/41","id":175565393,"user":{"login":"EvilBeaver","id":2657561,"avatar_url":"https://avatars.githubusercontent.com/u/2657561?v=3","gravatar_id":"","url":"https://api.github.com/users/EvilBeaver","html_url":"https://github.com/EvilBeaver","followers_url":"https://api.github.com/users/EvilBeaver/followers","following_url":"https://api.github.com/users/EvilBeaver/following{/other_user}","gists_url":"https://api.github.com/users/EvilBeaver/gists{/gist_id}","starred_url":"https://api.github.com/users/EvilBeaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvilBeaver/subscriptions","organizations_url":"https://api.github.com/users/EvilBeaver/orgs","repos_url":"https://api.github.com/users/EvilBeaver/repos","events_url":"https://api.github.com/users/EvilBeaver/events{/privacy}","received_events_url":"https://api.github.com/users/EvilBeaver/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T11:13:43Z","updated_at":"2016-01-27T11:13:43Z","body":"Уникальность там не обеспечивается, ибо уникальность можно сделать, только если \"застолбить\" имя созданием файла с таким именем. Поэтому, в C# метод называется GetRandomFileName. Оно случайное и почти уникальное, но тем не менее, не гарантирует."}}