AlexStz

Results 9 comments of AlexStz

Or port "fix: Fix posix-style paths from Windows (wendlers#72)" from [junhuanchen/mpfshell](https://github.com/junhuanchen/mpfshell) (change `os.path.join` to `posixpath.join`)

on Windows 7+ everything is OK. (I don't know how to WinXP or Vista) on Linux - also everything is OK. (posix system:) on Mac - I don’t check, none......

if use "posixpath" all paths with "/" - none "\" or "\\" ! пн, 20 мая 2019 г. в 09:22, Juwan : > check this. > > [image: 图片] >...

this in function "__parse_file_names()" and next -> "Class Tokenizer" ( variable "valid_fnchars")... I need to think. "re.Scanner" -> "tokens". I know this badly. I will dig the Internet. пн, 20...

Now all "args" all commands (lcd, cd, gt, rm, put...) need "posix" path (c:/User/Juwan). This is in function "__parse_file_names()" and next -> "Class Tokenizer". All commands use "on local" or...

Corrected `valid_fnchars = "A-Za-z0-9_%#~@/\$!\*\.\+\-\:\\\\"` -> here added `"\\\\"`

![2019-05-20_111439](https://user-images.githubusercontent.com/34999867/58010522-d1140280-7af0-11e9-854b-8ae8ae4c8d0f.jpg) Errors none. (lines starting tokens: and rest: - for debugging)

I think that there is no need to divide into different "local" operating systems. And the remote is always "linux" (board). If there is no such path, now give error....

If you still want to implement a real path check of the local system, read to start: [is_path_exists_or_creatable()](https://stackoverflow.com/a/34102855). And [python pathlib](https://docs.python.org/3/library/pathlib.html). > Beyond sanity. Beyond pain. You will find Python...