This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bufio" | |
| "errors" | |
| "fmt" | |
| "io" | |
| "math" | |
| "os" | |
| "strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fs = require("fs"); | |
| path = require("path"); | |
| var files = fs.readdirSync("."); | |
| for (var i = 0; i < files.length; i++) { | |
| var file = files[i]; | |
| var ext = path.extname(file); | |
| if (ext != '.ogg') { | |
| continue; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pyftpdlib.authorizers import DummyAuthorizer | |
| from pyftpdlib.handlers import FTPHandler | |
| from pyftpdlib.servers import FTPServer | |
| authorizer = DummyAuthorizer() | |
| authorizer.add_user("byvoid", "pass", "/home/byvoid/ftp", perm="elradfmw") | |
| handler = FTPHandler | |
| handler.authorizer = authorizer |
OlderNewer