search for: isfile

Displaying 20 results from an estimated 21 matches for "isfile".

Did you mean: is_file
2017 Aug 28
3
[bug report] Cyrillic letter "я" interrupts script execution via R source function
...an(file, what="character", encoding = encoding, sep >> = "\n")* > > * on.exit()* > > * close(file)* > > * srcfile <- srcfilecopy(filename, lines, >> file.mtime(filename)[1], * > > * isFile = TRUE)* > > * } * > > *...* > > I do not fully understand this weird behaviour, so I ask help of R Core developers to fix this annoying bug that prevents using unicode scripts with cyrillic on Windows. Maybe you should make that part of *source()* function read files like...
2005 Nov 26
1
list.files(recursive=T) does not return directory names
list.files() (and dir()) don't appear to return names of directories when one uses the recursive=T argument. E.g., > dir(file.path(R.home(),"library"), pattern="^R$", recursive=T) [1] "Malmig/help/R" but the unix find commmand finds lots of R directories > z <- system(paste("find", file.path(R.home(),"library"), "-name
2014 Feb 13
2
[LLVMdev] Bad test health
...', '.join(str(s) for s in used)) #print("Runlines: %s" % ', '.join(runlines)) print return False return True class LitTestTracker: def __init__(self): self.exts = dict() def is_test(self, path): path = os.path.abspath(path) if not os.path.isfile(path): return False dir = os.path.dirname(path) ext = os.path.splitext(path)[1] return ext in self.exts_for_dir(dir) def exts_for_dir(self, dir): self.add_dir(dir) return self.exts[dir] def add_dir(self, dir): if dir in self.exts: return exts = self.lo...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...nal config embedded in the livecd image + if os.path.exists("/live/config"): + os.system("cp -rv --update /live/config/* /config") + + # bind mount all persisted configs to rootfs + for f in os.listdir("/config"): + if os.path.isfile("/config/%s") % f: + target = string.replace(f, "/config", "") + mounted = os.system("grep -q %s ext3 /proc/mounts") % target + if mounted == 0: + # skip if already bind-mounted +...
2017 Aug 28
0
[bug report] Cyrillic letter "я" interrupts script execution via R source function
...cter", encoding = encoding, sep />>/ = "\n")* />/ />/ * on.exit()* />/ />/ * close(file)* />/ />/ * srcfile<- srcfilecopy(filename, lines, />>/ file.mtime(filename)[1], * />/ />/ * isFile = TRUE)* />/ />/ * } * />/ />/ *...* />/ />/ /I do not fully understand this weird behaviour, so I ask help of R Core developers to fix this annoying bug that prevents using unicode scripts with cyrillic on Windows. Maybe you should make that part of *source()* function r...
2009 Mar 21
0
[PATCH 1/1] SYSLINUX/COMBOOT: Abstract searchdir and fix the opendir call
...hdir: +; +; Open a file +; +; On entry: +; DS:DI = filename +; If successful: +; ZF clear +; SI = file pointer +; EAX = file length in bytes +; If unsuccessful +; ZF set +; +; Assumes CS == DS == ES, and trashes BX and CX. +; +searchdir: + call searchdir4any + jz .notfound .isfile: test dl,18h ; Subdirectory|Volume Label jnz .badfile ; If not a file, it's a bad thing @@ -1359,20 +1414,37 @@ searchdir: and eax,eax ; EAX != 0 jz .badfile ret ; Done! +.badfile: + xor eax,eax + mov [si],eax ; Free file structure - ; If we expected a directory, it bet...
2005 Jan 27
2
[LLVMdev] Building the llvm runtime: 'Can't destroy file: Theprocess cannot access the fi
...]: *** [/C/projects/build/MinGW/llvm-4-1/Debug/lib/libc.bca] Error 2 ------------------------- Like before, the temporary file libc.bca-000000 doesn't exist when finished. But libc.bca exists. I've put debugging text into: ------------------------- bool Path::destroyFile() const { if (!isFile()) return false; DWORD attr = GetFileAttributes(path.c_str()); // If it doesn't exist, we're done. if (attr == INVALID_FILE_ATTRIBUTES) return true; // Read-only files cannot be deleted on Windows. Must remove the read-only // attribute first. if (attr & FILE_ATTRIB...
2008 Sep 27
0
[PATCH 9/9] xen: add SR-IOV support to xm
...+ SYSFS_PCI_IOV_RID, ''r'') + rid = f1.readline() + f1.close() + pciback_remove_device(rid) + + return True + +def set_iov_param(dev, i, ent, value): + path = has_vf(dev, i) + if path == None: + return False + + path += ent + if not os.path.isfile(path): + print "Device %s doesn''t have parameter %s." % (dev, ent) + return None + + f = open(path, ''w'') + f.write(value) + f.close() + + return True class PciDeviceNotFoundError(Exception): def __init__(self,domain,bus,slot,func...
2005 Apr 25
16
[PATCH] Guest boot loader support
Attached is an updated version of the patch to add boot loader support for guest domains. Changes from the initial set of patches: * Per Ian''s request, adds an option to specify booting a specific kernel from the host domain (you can specify it either with the title of the boot loader config entry or with the grub 0-based index) * Reduces some of the code duplication for finding out
2011 Nov 28
5
window manager interface commands for linux
How can i replicate this in Linux: source(file.choose()) I've tried source(tkgetOpenFile()) but with no luck
2009 Oct 15
1
Patch depends on the previous storage patch...
This patch is dependant on the previously submitted storage admin patch.
2009 Oct 21
1
[PATCH node] Renamed files and menu items for node administration:
...return True + else: + errors.append("You must select an install media.") + elif page == SELECT_ISO_PAGE: + if len(self.__iso_path.value()) > 0: + if os.path.exists(self.__iso_path.value()): + if os.path.isfile(self.__iso_path.value()): + return True + else: + errors.append("%s is not a file." % self.__iso_path.value()) + else: + errors.append("No such install media exists:") +...
2018 Jun 26
1
Fwd: Re: Ubuntu 18:04 not getting 'home' directory from DC
...er=0x2;host=1x.1xx.1.3x;ip4=1x.1xx.1.3x;sec=krb5;uid=0x277d;creduid=0x0;user=test;pid=0x4ba cifs.upcall: ver=2 cifs.upcall: host=1x.1xx.1.3x cifs.upcall: ip=1x.1xx.1.3x cifs.upcall: sec=1 uid=10109 creduid=0 user=test pid=1210 get_cachename_from_process_env: pid == 0 get_existing_cc: default ccache isFILE:/tmp/krb5cc_0 cifs.upcall: get_tgt_time: unable to get principal cifs.upcall: krb5_get_init_creds_keytab: -1765328203 cifs.upcall: Exit status 1 lightdm[830]: (mount.c:72): Messages from underlying mount program: lightdm[830]: (mount.c:76): mount error(126): Required key not available Do you have...
2009 Aug 31
1
Fixed patch...
This version of the patch includes feedback from jboggs at redhat.com, including fixes to the BuildRequires and Requires in the spec file.
2009 Sep 11
1
Text-based node administration tool
This patch obsoletes any previous ones. This is an upstream candidate, so I'm looking for feedback so we can push this and start using it.
2009 Sep 14
1
Bugfixes...
This version fixes a few bugs found by jboggs. It also includes some logging facilities that need to be fleshed out more.
2009 Sep 16
1
Final push candidate for nodeadmin tool...
This patch is ready for pushing upstream.
2009 Sep 16
1
Replacement that includes utils.py
The previous patch was missing this file. Resending.
2009 Jul 31
2
RFC: This patch is not being submitted for ACK...
...just looking for some feedback on the direction I'm going. The code won't get all the way to the define stage since I'm in the middle of retrofitting it to use virtinst instead of a home spun node definition.
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...st char *)); -extern char **filter_fnmatch (char **strings, const char *patt, int flags); -extern char **filter_notmatching_substring (char **strings, const char *sub); -extern void sort (char **strings, int (*compare) (const void *, const void *)); -extern int isdir (const char *path); -extern int isfile (const char *path); -extern char **load_file (const char *filename); - -#endif /* SUPERMIN_HELPER_H */ diff --git a/helper/init.c b/helper/init.c deleted file mode 100644 index f979f72..0000000 --- a/helper/init.c +++ /dev/null @@ -1,537 +0,0 @@ -/* supermin-helper reimplementation in C. - * Copyri...