Questions tagged [file-attributes]

Question regarding create/read/update file attributes in code

185 questions
0
votes
0 answers

Get files from remotePath that are not in localPath using C#

I am using WINSCP functionality with an SSIS script task to move files from a remotePath to a localPath. I am also setting these files to readonly using: File.SetAttributes(LocalPath, FileAttributes.ReadOnly); This works to set the attributes, it…
Prob1em
  • 74
  • 6
0
votes
1 answer

C# how to change file attributes and copy

I'm making an application that copies files from one location to another, in my application I use thread pool so a few copies could be done together. When I tried to copy a read only file I got "access denied" exception. In order to fix that I…
ShaqD
  • 63
  • 1
  • 10
0
votes
2 answers

How to read file attributes using Master File Table data

In my project i want list out all files under a specific file path.Do to some user permission issue am using master file table to access all files. Using this thread I can able to read all files under a specific file location This one will list the…
thejustv
  • 2,009
  • 26
  • 42
0
votes
0 answers

Enable setfattr (extended attributes) in OpenSUSE-13.X

I have a requirement where i need to add some extended attributes on a symlink and a file.However "setfattr:operation not supported" error is not allowing me to do that in OpenSUSE. $setfattr -n "user.name" -v "myname" LICENCE.txt setfattr:…
WillMcavoy
  • 1,795
  • 4
  • 22
  • 34
0
votes
1 answer

How to modify file attribute in zip file?

Using SharpZipLib, I'm adding files to a existing zip file: using (ZipFile zf = new ZipFile(zipFile)) { zf.BeginUpdate(); foreach (FileInfo fileInfo in fileInfos) { string name =…
joe
  • 8,344
  • 9
  • 54
  • 80
0
votes
1 answer

Modifying folder without modifying timestamp

I'd like to change folder contents without having Date modified change. I sometimes do cleanup runs on old folders, trying to make space or clean up temp files and dead-ends, or adding relevant links or tags for findability. When I do this, I don't…
SouPress
  • 295
  • 1
  • 2
  • 12
0
votes
1 answer

get file attributes with nsfilesustem in cocoa no such file exists

I've searching for about 3 hours of how to get the creation date of a file, I get the URL with an enumerator, after that I pass it to path correcting the percents, and finally I try to get the file attributes...so, I don no alter the path in anyway…
raululm
  • 105
  • 1
  • 1
  • 10
0
votes
0 answers

USB device Set Attribute in C#

I have this bit of code: DriveInfo[] myDrives = DriveInfo.GetDrives(); foreach (DriveInfo myDrive in myDrives) { if (myDrive.DriveType == DriveType.Removable) { string path = Convert.ToString(myDrive.RootDirectory); …
p19lord
  • 33
  • 6
0
votes
2 answers

Get datetaken attribute on file

I am trying to write a script that will get the DATETAKEN attribute from a photo and create a folder structure based on that and move the file to this new location. I have found scripts on google that I'm trying to use but when I running it, it…
Niklas
  • 27
  • 1
  • 6
0
votes
0 answers

Where are all of hard linked files located?

When we create a directory mkdir foo, initially the number of hard links is 2 ls -ld foo -because of the directory itself and the shortcut dot . inside that directory. If we create a new directory inside that foo, the number of hard links for foo…
user3140972
  • 995
  • 6
  • 11
0
votes
4 answers

How create custom file attribute via c#

Good day! I have some file called "*.dat" with text into it. So, i try to create attribure "Version" ,but don't know how. Can i do it via c#? Can you write some examples? Such like this? File.SetAttributes(path, attributes); Thank you!
user2545071
  • 1,408
  • 2
  • 24
  • 46
0
votes
1 answer

how do i change the file attributes?

I am using the the GetFileAttributes() function in my code. Its return the value as 0x2010. Because, Its saying, "FILE_ATTRIBUTE_NOT_CONTENT_INDEXED". I need output as 0x10. Please help me to resolve this. I am using empty folder to get file…
Muthupandi
  • 109
  • 3
  • 11
0
votes
1 answer

GetAttributes uses wrong working directory in subthread

I used File::Find to traverse a directory tree and Win32::File's GetAttributes function to look at the attributes of files found in it. This worked in a single-threaded program. Then I moved the directory traversal into a separate thread, and it…
user2404501
0
votes
1 answer

what is filekey attribute and how can set filekey attribute of any document in java

plz any buddy share demo program about file version control of any document and how can uniquely identify that document at the time of when we…
MasterV
  • 29
  • 6
0
votes
2 answers

Unknown FileAttributes

I tried to run the following code: var top = new DirectoryInfo("C:\\"); foreach(var info in top.GetFileSystemInfos()) System.Console.WriteLine("{0}: {1}", info.Name, info.Attributes); I got the following result: $Recycle.Bin: Hidden, System,…
Svish
  • 152,914
  • 173
  • 462
  • 620