{"action":"opened","issue":{"url":"https://api.github.com/repos/suizokukan/katal/issues/38","labels_url":"https://api.github.com/repos/suizokukan/katal/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/suizokukan/katal/issues/38/comments","events_url":"https://api.github.com/repos/suizokukan/katal/issues/38/events","html_url":"https://github.com/suizokukan/katal/issues/38","id":115683603,"number":38,"title":"improve test_is_ntfs_prefix_mandatory()","user":{"login":"suizokukan","id":3998078,"avatar_url":"https://avatars.githubusercontent.com/u/3998078?v=3","gravatar_id":"","url":"https://api.github.com/users/suizokukan","html_url":"https://github.com/suizokukan","followers_url":"https://api.github.com/users/suizokukan/followers","following_url":"https://api.github.com/users/suizokukan/following{/other_user}","gists_url":"https://api.github.com/users/suizokukan/gists{/gist_id}","starred_url":"https://api.github.com/users/suizokukan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suizokukan/subscriptions","organizations_url":"https://api.github.com/users/suizokukan/orgs","repos_url":"https://api.github.com/users/suizokukan/repos","events_url":"https://api.github.com/users/suizokukan/events{/privacy}","received_events_url":"https://api.github.com/users/suizokukan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-07T18:34:24Z","updated_at":"2015-11-07T18:34:24Z","closed_at":null,"body":"#///////////////////////////////////////////////////////////////////////////////\r\ndef test_is_ntfs_prefix_mandatory(_path):\r\n    \"\"\"\r\n        test_is_ntfs_prefix_mandatory\r\n        ________________________________________________________________________\r\n\r\n        Return True if the _path is a path in a systemfile requiring the NTFS\r\n        prefix for long filenames.\r\n        ________________________________________________________________________\r\n\r\n        PARAMETER\r\n            _path : (str)the path to be tested\r\n\r\n        RETURNED VALUE\r\n            a boolean\r\n    \"\"\"\r\n    longpath = os.path.join(_path, \"a\"*250, \"b\"*250)\r\n    res = False\r\n\r\n    try:\r\n        os.mkdir(longpath)\r\n    except IOError:\r\n        res = True\r\n\r\n    if res is False:\r\n        os.rmdir(longpath)\r\n\r\n    return res"}}